turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

i can't use string with params on view `@_("hello {0}", Model.Name) is not defined #342

Closed mahmut-gundogdu closed 7 years ago

mahmut-gundogdu commented 7 years ago

hi. it is my first project with i18n. i love this liblary. but i have a problem. i find solution for my question in there : https://github.com/turquoiseowl/i18n/issues/35#issuecomment-13239982

but @_("hello {0}","world") is not working. is id deprecated. i dont want to use like that @string.Format("[[[Sign up or in using your %0 account|||{0}]]]", p.DisplayName)

turquoiseowl commented 7 years ago

Yes, i18n v2 fully replaced the normal GetText method of marking up messages (still in i18n v1) with the new nugget syntax.