☎️Translate AppFlowy
You can help Appflowy in supporting various languages by contributing. Follow the steps below sequentially to contribute translations.
Steps to modify an existing translation
Translation files are located in : frontend/app_flowy/assets/translations/
Modify in the no-code editor (inlang)
Open the inlang-editor
Edit translations (filter & search can help)
Run
flutter pub run easy_localization:generate -S assets/translations/Run
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translationsVerify that the translation has changed appropriately by compiling and running the app.
Modify in code
Modify the specific translation file.
Run
flutter pub run easy_localization:generate -S assets/translations/Run
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translationsVerify that the translation has changed appropriately by compiling and running the app.
Steps to add new language
Adding new languages from within the inlang editor is not supported yet, but you can add the language and then do the translations in inlang. (Adding via inlang is coming soon)
NOTE: Translation files SHOULD be json files named in the format <lang_code>-<country_code>.json or just <lang_code>.json. eg:en.json, en-UK.json
Add language key-value json file to
frontend/app_flowy/assets/translations/. Referen.jsonfor format and keys.Run
flutter pub run easy_localization:generate -S assets/translations/Run
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translationsOpen the
frontend/app_flowy/lib/startup/tasks/app_widget.dartfile.In the
InitAppWidgetTaskclass, add the locale of the language you just created (eg:Locale('en', 'IN'),Locale('en')) to thesupportedLocalesList :Add the name of your language, in your native tongue, to the list of language names in
AppFlowy/frontend/app_flowy/packages/flowy_infra/lib/language.dart
How to test your changes
Once your language is added to the language picker, you can simply choose it.
Last updated
Was this helpful?

