Manually Registering Translations

You can add translations to local text registry from your application start method.

Sources for these translations might be a database table, xml file, embedded resources etc.

  1. void Application_Start()
  2. {
  3. // ...
  4. var registry = Dependency.Resolve<ILocalTextRegistry>();
  5. registry.Add("es", "Dialogs.YesButton", "Sí");
  6. registry.Add("fr", "Dialogs.YesButton", "Oui");
  7. // ..
  8. }