Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Change supported locales #359

@Megidd

Description

@Megidd

I'm changing this line according to the relevant documentation by this patch:

           return MaterialApp(

             // ...

             initialRoute: initialRoute,
-            supportedLocales: GalleryLocalizations.supportedLocales,
+            supportedLocales: [
+              const Locale('en'),
+              const Locale('he'),
+            ],
             locale: GalleryOptions.of(context).locale,
             localeResolutionCallback: (locale, supportedLocales) {
               deviceLocale = locale;
               return locale;
             },

// ...

But the locales options on settings page are not modified. Any idea why?


I have a feeling like to change supported locales, I need to change l10n.yaml file. But I don't know what options are available. Can anybody help? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions