ASP.NET MVC localization best practice?

前端 未结 6 1507
野性不改
野性不改 2020-12-13 10:52

I need help with the best practice to localize asp mvc apps, I saw Oxite having a base method named Localize in the BaseController, but is the Localization a task for the vi

6条回答
  •  醉话见心
    2020-12-13 11:04

    If the string to be localized is generated by the view (eg a label in front of a text field), then its localization should be in the View.

    If the string is generated by the Controller, its localization should be there as well.

提交回复
热议问题