Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Renamed language files to correct format (using a dash)

MikeWallaceDeve98972cebcf7
diff --git a/frontend/app_flowy/assets/translations/it_IT.json b/frontend/app_flowy/assets/translations/it-IT.json
similarity index 100%
rename from frontend/app_flowy/assets/translations/it_IT.json
rename to frontend/app_flowy/assets/translations/it-IT.json
diff --git a/frontend/app_flowy/assets/translations/zh_CN.json b/frontend/app_flowy/assets/translations/zh-CN.json
similarity index 100%
rename from frontend/app_flowy/assets/translations/zh_CN.json
rename to frontend/app_flowy/assets/translations/zh-CN.json
diff --git a/frontend/app_flowy/lib/startup/tasks/application_widget.dart b/frontend/app_flowy/lib/startup/tasks/application_widget.dart
index 4caa86844b..14d8dd95b4 100644
--- a/frontend/app_flowy/lib/startup/tasks/application_widget.dart
+++ b/frontend/app_flowy/lib/startup/tasks/application_widget.dart
@@ -22,7 +22,7 @@ class AppWidgetTask extends LaunchTask {
() {
runApp(
EasyLocalization(
- supportedLocales: const [Locale('en'), Locale('zh_CN'), Locale('it_IT')],
+ supportedLocales: const [Locale('en'), Locale('zh', 'CN'), Locale('it', 'IT')],
path: 'assets/translations',
fallbackLocale: const Locale('en'),
child: app),