#171 Internationalisation (i18n) basics. Translate your app!
10/06/2024
Gratis
In this episode we make our app available in different languages.
There are different strategies to set the current language.
Setting the language in the URL is an easy and RESTful approach.
Let's implement it!
Episode source code (premium subscribers only): https://github.com/yshmarov/superails/pull/251/commits/da896aa42667b11b044e2899b2cbe69a3c2f5023
Based on this blogpost: https://blog.corsego.com/i18n-select-locale
0
Inicia sesión para unirte a la conversación
Destacado en listas
![#171 Internationalisation (i18n) basics. Translate your app!](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjI5MCwicHVyIjoiYmxvYl9pZCJ9fQ==--37d7664cc7d9e164f4feb5c3b6fd96b6e1543c13/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
![#172 i18n. Set language preferences in session or in User model](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjI5MiwicHVyIjoiYmxvYl9pZCJ9fQ==--0ea8a7a8febfb04ee1284201017fa4d9cb09a6b5/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--34e5c9bac0ea93c87a890e274478a7e6bd659b29/172.png)
![#173 automate translations with AI](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjI5NCwicHVyIjoiYmxvYl9pZCJ9fQ==--2fce7386296773799983993368a9676b46a6bd78/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--34e5c9bac0ea93c87a890e274478a7e6bd659b29/173.png)
+1
i18n (internationalization)