appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Bug] AppFlowyEditorLocalizations delegate does not support ko locale

Open intelryzen opened this issue 4 months ago • 2 comments

Bug Description

When I declare my app to support both English and Korean…

supportedLocales: [
  const Locale('en'),
  const Locale('ko'),
],
localizationsDelegates: [
  AppFlowyEditorLocalizations.delegate,
  GlobalMaterialLocalizations.delegate,
  GlobalWidgetsLocalizations.delegate,
  GlobalCupertinoLocalizations.delegate,
],

…I see this warning at runtime:


======== Exception caught by widgets ===============================================================
The following message was thrown:
Warning: This application's locale, ko_KR, is not supported by all of its localization delegates.

• A AppFlowyEditorLocalizations delegate that supports the ko_KR locale was not found.

The declared supported locales for this app are: en, ko, ko_KR

See https://flutter.dev/to/internationalization/ for more information about configuring an app's locale, supportedLocales, and localizationsDelegates parameters.
====================================================================================================

It appears that AppFlowyEditorLocalizations has no Korean translations built in, so the delegate refuses to handle ko.

I’d like to know if this is indeed just because Korean isn’t yet provided in the package, and—if so—whether I can contribute or override it by adding my own ko ARB/JSON resources.

How to Reproduce

supportedLocales: [Locale('en'), Locale('ko')],
localizationsDelegates: [
  AppFlowyEditorLocalizations.delegate,
  GlobalMaterialLocalizations.delegate,
  GlobalWidgetsLocalizations.delegate,
  GlobalCupertinoLocalizations.delegate,
],

Operating System

macOS 15.5

AppFlowy Editor Version(s)

6.0.0

Screenshots

No response

Additional Context

No response

intelryzen avatar Jul 11 '25 13:07 intelryzen

Please feel free to contribute to the ko-KR translations. in https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/l10n

LucasXu0 avatar Jul 11 '25 13:07 LucasXu0

Please feel free to contribute to the ko-KR translations. in https://github.com/AppFlowy-IO/appflowy-editor/tree/main/lib/l10n

I’ve added Korean (ko-KR) localization in this PR (#1130).

intelryzen avatar Jul 11 '25 16:07 intelryzen