Giter Club home page Giter Club logo

l10n_esperanto's Introduction

l10n_esperanto

Esperanto localization for Flutter. This will only localize the basic strings (just like with all the other languages supported by Flutter) and the various date and time formats of the intl package. Your own app strings have to be handled by your own localization, as per normal.

Otherwise, it will work just as expected for apps. Although no Android device has Esperanto as a system language, so the locale won't be selected automatically, you can use it as one of the languages available in your app. You can even make it the default language (not using English at all) and all devices will show your app in Esperanto, unless another language is selected.

Getting Started

Use it in your app:

MaterialApp(
  supportedLocales: [
    const Locale(...),
    const Locale('eo'),
  ],
  localizationsDelegates: const [
    GlobalMaterialLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    MaterialLocalizationsEo.delegate,
    CupertinoLocalizationsEo.delegate,
  ],

If you use the standard Flutter Intl internationalization in your app:

MaterialApp(
  supportedLocales: S.delegate.supportedLocales,
  localizationsDelegates: const [
    S.delegate,
    MaterialLocalizationsEo.delegate,
    CupertinoLocalizationsEo.delegate,
  ],

Note that the order is important, always start with the global ones.

Using DateFormat

A known limitation seems to be that you can only access DateFormat settings of a custom locale if your app runs in the same locale. Make sure you also specify the locale either in the app itself or by user choice

MaterialApp(
  locale: const Locale('eo'),
  supportedLocales: ...,
  localizationsDelegates: ...,

if you plan to use a call like

DateFormat.MMMMEEEEd('eo').format(DateTime.now())

l10n_esperanto's People

Contributors

12people avatar deakjahn avatar florian-obernberger avatar gilaraujo avatar kefiiris avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

l10n_esperanto's Issues

DateFormat is not supported

Hey there!

Thanks for creating this package. I did notice an issue when trying to use DateFormat.

We get the following error:
image
image

eo isn't in the dateTimeSymbols.

We use DateFormat extensively in the package so we would appreciate if it could be supported. We can ask our translators to help translating that if you need help with it.

If there's something we're doing wrong and this should be supported let us know!

Missing implementations error

This fails in the latest version of Flutter with this error:

Error: The non-abstract class 'MaterialLocalizationsEo' is missing implementations for these members:
../โ€ฆ/lib/l10n_esperanto.dart:12

  • MaterialLocalizations.keyboardKeyAlt

  • MaterialLocalizations.keyboardKeyAltGraph

  • MaterialLocalizations.keyboardKeyBackspace

  • MaterialLocalizations.keyboardKeyCapsLock

  • MaterialLocalizations.keyboardKeyChannelDown

  • MaterialLocalizations.keyboardKeyChannelUp

  • MaterialLocalizations.keyboardKeyControl

  • MaterialLocalizations.keyboardKeyDelete

  • MaterialLocalizations.keyboardKeyEject

  • MaterialLocalizations.keyboardKeyEnd

  • MaterialLocalizations.keyboardKeyEscape

  • MaterialLocalizations.keyboardKeyFn

  • MaterialLocalizations.keyboardKeyHome

  • MaterialLocalizations.keyboardKeyInsert

  • MaterialLocalizations.keyboardKeyMeta

  • MaterialLocalizations.keyboardKeyMetaMacOs

  • MaterialLocalizations.keyboardKeyMetaWindows

  • MaterialLocalizations.keyboardKeyNumLock

  • MaterialLocalizations.keyboardKeyNumpad0

  • MaterialLocalizations.keyboardKeyNumpad1

  • MaterialLocalizations.keyboardKeyNumpad2

  • MaterialLocalizations.keyboardKeyNumpad3

  • MaterialLocalizations.keyboardKeyNumpad4

  • MaterialLocalizations.keyboardKeyNumpad5

  • MaterialLocalizations.keyboardKeyNumpad6

  • MaterialLocalizations.keyboardKeyNumpad7

  • MaterialLocalizations.keyboardKeyNumpad8

  • MaterialLocalizations.keyboardKeyNumpad9

  • MaterialLocalizations.keyboardKeyNumpadAdd

  • MaterialLocalizations.keyboardKeyNumpadComma

  • MaterialLocalizations.keyboardKeyNumpadDecimal

  • MaterialLocalizations.keyboardKeyNumpadDivide

  • MaterialLocalizations.keyboardKeyNumpadEnter

  • MaterialLocalizations.keyboardKeyNumpadEqual

  • MaterialLocalizations.keyboardKeyNumpadMultiply

  • MaterialLocalizations.keyboardKeyNumpadParenLeft

  • MaterialLocalizations.keyboardKeyNumpadParenRight

  • MaterialLocalizations.keyboardKeyNumpadSubtract

  • MaterialLocalizations.keyboardKeyPageDown

  • MaterialLocalizations.keyboardKeyPageUp

  • MaterialLocalizations.keyboardKeyPower

  • MaterialLocalizations.keyboardKeyPowerOff

  • MaterialLocalizations.keyboardKeyPrintScreen

  • MaterialLocalizations.keyboardKeyScrollLock

  • MaterialLocalizations.keyboardKeySelect

  • MaterialLocalizations.keyboardKeySpace

  • MaterialLocalizations.menuBarMenuLabel

Missing concrete implementations when building using Flutter 3.22

Thanks for making this package! I just wanted to point out some issues with missing implementations when building with Flutter 3.22 which was released a few days ago.

Building an app using Flutter 3.22 and l10n_esperanto fails due to missing implementations for two new strings. In particular, these are the missing implementations:

  • MaterialLocalizations.clearButtonTooltip
  • MaterialLocalizations.selectedDateLabel

To reproduce, upgrade to Flutter 3.22 and observe errors:

Missing concrete implementations of 'getter MaterialLocalizations.clearButtonTooltip' and 'getter MaterialLocalizations.selectedDateLabel'.
Try implementing the missing methods, or make the class abstract.

Missing / soon to be missing implementations

First of: Thank you so so much for providing this library, it's amazing :)

I just wanted to let you know that there are a view strings missing currently. The title says "soon to be" because I am unsure weather they already are missing in the stable branch. I am using the beta branch.

Strings missing in MaterialLocalizationsEo:

  • MaterialLocalizations.lookUpButtonLabel
  • MaterialLocalizations.menuDismissLabel
  • MaterialLocalizations.searchWebButtonLabel
  • MaterialLocalizations.shareButtonLabel

Strings missing in CupertinoLocalizationsEo:

  • CupertinoLocalizations.lookUpButtonLabel
  • CupertinoLocalizations.menuDismissLabel
  • CupertinoLocalizations.searchWebButtonLabel
  • CupertinoLocalizations.shareButtonLabel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.