Reputation: 7105
Kindly guide How to use multiple languages in Flutter, how to give the option to the user to switch between languages.
I have some strings to use in Flutter for multiple languages
English
"sensor_title": "SENSORS",
"sensor_gyroscope_title": "GYROSCOPE",
"sensor_accelerometer_title": "Accelerometer",
Turkish
"sensor_title": "SENSÖRLER",
"sensor_gyroscope_title": "JİROSKOP",
"sensor_accelerometer_title": "İvmeölçer",
Upvotes: 1
Views: 2230
Reputation: 79
you can use get package it's easy to customize your translations and make offline multi language app. Just check on the internationalization part.
Upvotes: 0
Reputation: 3326
There are multiple options you can try:
Implement i18n for your app: With this, you need to implement the config yourself to make your app internationalized. You can use the build_runner to generate most of the config for you. What is left is just putting your key/value pairs of words into the json files.
Use the easy_localization package: This package is what I usually use for small scale app since it does the heavy work for me.
Upvotes: 2