skip to Main Content

Flutter – why String not get localised?

I use getxcontroller, in it there is a String like this: class HomeController extends GetxController { String testString1 = 'test1'.tr; testMethod(){ String testString2 = 'test2'.tr; } } After I trigger some localise method: var locale = Locale('de', 'DE'); Get.updateLocale(locale); testString2…

VIEW QUESTION

How to add Laravel localization using php file?

I followed the documentation in https://laravel.com/docs/10.x/localization. I changed my 'locale' and 'fallback_locale' to 'fr' in config/app.php. The French translation works if I use: /lang/fr.json, but it doesn't work if I use /lang/fr/messages.php. No error messages nor warning, it just stays…

VIEW QUESTION
Back To Top
Search