Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localizations]: Language code fow Swedish is wrong #1378

Open
3 of 7 tasks
oakstair opened this issue Mar 23, 2024 · 2 comments
Open
3 of 7 tasks

[Localizations]: Language code fow Swedish is wrong #1378

oakstair opened this issue Mar 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@oakstair
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.0

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
€ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.2.1 23C71 darwin-x64, locale sv-SE)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.6)
[✓] VS Code (version 1.52.1)
[✓] Network resources

• No issues found!

Minimal code example

Code sample
Not code related ...

Current Behavior

My application is setting language to 'sv' as this is the correct language code for Swedish.

Since FormBuilder uses 'se' which is wrong this doe snot work.

Expected Behavior

Form texts should be localizes correctly wehren using the correct language code for Swesih = 'sv'

Steps To Reproduce

  1. Create a form
  2. Set language to 'sv'
  3. Checkthat error message are in Sweidsh

Aditional information

No response

@oakstair oakstair added the bug Something isn't working label Mar 23, 2024
@oakstair
Copy link
Author

            return MaterialApp.router(
              // navigatorKey: _appRouter.navigatorKey,
              debugShowCheckedModeBanner: false,
              theme: PokerChampionTheme.dark(),
              title: 'PokerChampion',
              backButtonDispatcher: RootBackButtonDispatcher(),
              routeInformationParser: routeParser,
              routerDelegate: _appRouter,
              localizationsDelegates: [
                GlobalMaterialLocalizations.delegate,
                GlobalWidgetsLocalizations.delegate,
                GlobalCupertinoLocalizations.delegate,
                // FormBuilderLocalizations.delegate, 'sv' is currently not supported ....
              ],
              supportedLocales: [
                // const Locale('de'),
                const Locale('en'),
                // const Locale('es'),
                // const Locale('it'),
                // const Locale('pl'),
                // const Locale('ru'),
                const Locale('sv'),
              ],
            );
          },

@deandreamatias
Copy link
Collaborator

But this is related to flutter_form_builder or to form_builder_validators ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants