Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Alternative Localization
in .Net Core Apps
valdis iljuconoks (aka technical fellow)
tech guy at getadigital.com
(Microsoft .Net + Episerver) ◦ MVP
@tech_fellow
@tech_fellow
Globalization + Localization
Culture Determination
@tech_fellow
Query String
Cookie
Accept-Language
Add Localization
@tech_fellow
IStringLocalizer<T>
@tech_fellow
IStringLocalizer<T>[“…”, p1, p2]
Add View Localization
@tech_fellow
IViewLocalizer
@tech_fellow
IHtmlLocalizer
Add Data Annotations
Let’s Translate..
@tech_fellow
.resx
Problem?
@tech_fellow
«Magic» strings
Fake classes
Absence of .resx files
.resx files
https://i.ytimg.com/vi/2qm7b1GCQ74/maxresdefault.jpg
Alternative?
@tech_fellow
LocalizationProvider.AspNetCore
@tech_fellow
Getting Started..
@tech_fellow
[LocalizedResource]
@tech_fellow
[LocalizedModel]
@tech_fellow
IStringLocalizer<T>.GetString()
IHtmlLocalizer<T>.GetString()
LocalizationProvider.GetString()
Configuring & Customizing
Editorial UI
Path to.Net Core
LocalizationProvider
LocalizationProvider
EPiServer Asp.Net
LocalizationProvider
EPiServer Asp.Net
Abstractions
LocalizationProvider
EPiServer Asp.Net
Abstractions
Asp.Net Core
netstandard
netstandard
LocalizationProvider
EPiServer Asp.Net
Abstractions
Asp.Net Core
netstandard
netstandard
EPiServer.AdminUI AspNet.AdminUI
LocalizationProvider
EPiServer Asp.Net
Abstractions
Asp.Net Core
netstandard
netstandard
EPiServer.AdminUI AspNet.AdminUI
...
LocalizationProvider
EPiServer Asp.Net
Abstractions
Asp.Net Core
netstandard
netstandard
EPiServer.AdminUI AspNet.AdminUI
...
@tech_fellow
//bit.ly/loc-provider
“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital  at .NET focused 63rd DevC...
“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital  at .NET focused 63rd DevC...
“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital  at .NET focused 63rd DevC...
“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital  at .NET focused 63rd DevC...
“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital  at .NET focused 63rd DevC...
Upcoming SlideShare
Loading in …5
×

“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital at .NET focused 63rd DevClub.lv

2,519 views

Published on

Let’s look at how Asp.Net Core applications could be localized, what are resources and resource managers. Will see how localization happens in Asp.Net Core pipeline and also will checkout some of the caveats and difficulties when working with built-in localization provider in Asp.Net Core applications. And in that context let’s see what could be done better and what tool we could use to make developer life easier (actually make developer not to think about such a boring task as application localization at all).
Valdis is (Microsoft® + EPiServer) · Most Valuable Professional, system architect and web/mobile technologist in Geta Digital, Visual Studio ALM evangelist and passionate about F#. He writes at blog.tech-fellow.net.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

“Alternative Localization for Asp.Net Core Applications” by Valdis Iļjučonoks from Geta Digital at .NET focused 63rd DevClub.lv

  1. 1. Alternative Localization in .Net Core Apps
  2. 2. valdis iljuconoks (aka technical fellow) tech guy at getadigital.com (Microsoft .Net + Episerver) ◦ MVP @tech_fellow
  3. 3. @tech_fellow Globalization + Localization
  4. 4. Culture Determination
  5. 5. @tech_fellow Query String Cookie Accept-Language
  6. 6. Add Localization
  7. 7. @tech_fellow IStringLocalizer<T>
  8. 8. @tech_fellow IStringLocalizer<T>[“…”, p1, p2]
  9. 9. Add View Localization
  10. 10. @tech_fellow IViewLocalizer
  11. 11. @tech_fellow IHtmlLocalizer
  12. 12. Add Data Annotations
  13. 13. Let’s Translate..
  14. 14. @tech_fellow .resx
  15. 15. Problem?
  16. 16. @tech_fellow «Magic» strings Fake classes Absence of .resx files .resx files
  17. 17. https://i.ytimg.com/vi/2qm7b1GCQ74/maxresdefault.jpg
  18. 18. Alternative?
  19. 19. @tech_fellow LocalizationProvider.AspNetCore
  20. 20. @tech_fellow Getting Started..
  21. 21. @tech_fellow [LocalizedResource]
  22. 22. @tech_fellow [LocalizedModel]
  23. 23. @tech_fellow IStringLocalizer<T>.GetString() IHtmlLocalizer<T>.GetString() LocalizationProvider.GetString()
  24. 24. Configuring & Customizing
  25. 25. Editorial UI
  26. 26. Path to.Net Core
  27. 27. LocalizationProvider
  28. 28. LocalizationProvider EPiServer Asp.Net
  29. 29. LocalizationProvider EPiServer Asp.Net Abstractions
  30. 30. LocalizationProvider EPiServer Asp.Net Abstractions Asp.Net Core netstandard netstandard
  31. 31. LocalizationProvider EPiServer Asp.Net Abstractions Asp.Net Core netstandard netstandard EPiServer.AdminUI AspNet.AdminUI
  32. 32. LocalizationProvider EPiServer Asp.Net Abstractions Asp.Net Core netstandard netstandard EPiServer.AdminUI AspNet.AdminUI EPiServer.JsHandler Xliff Export
  33. 33. LocalizationProvider EPiServer Asp.Net Abstractions Asp.Net Core netstandard netstandard EPiServer.AdminUI AspNet.AdminUI EPiServer.JsHandler Xliff Export
  34. 34. @tech_fellow //bit.ly/loc-provider

×