Giter VIP home page Giter VIP logo

ezlocalization's Introduction

ezlocalization's People

Contributors

cretezy avatar skyost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ezlocalization's Issues

make notFoundString required

As of now, if you migrate the app to null safety, you'll be required to add null check on every context.getString('key').

My suggestion is, make notFoundString a required parameter, then disable getString extension from returning null value.

A way to preserve the changed locale.

Is your feature request related to a problem? Please describe.
The locale is changed using builder and it changes instantly which I am thankful for. But if I restart the app, it defaults to the original language.

Describe the solution you'd like
It'd be great if the last locale choice is preserved and it is loaded on next start. Maybe using shared preferences?

Describe alternatives you've considered
Currently, only way I can think of is by forcing a locale after getting it from stored key using shared preferences, but I'm not very comfortable forcing a locale.

Additional context
Is there a way to supply a locale as a first preference?

Please support intl to 0.18.1

Is your feature request related to a problem? Please describe.
Cannot use package intl 0.18.1 version

Describe the solution you'd like
Upgrade intl package to latest

Describe alternatives you've considered

Additional context
Cannot use ez_localization 1.1.0 if we upgrade intl package to 0.18.1

Am I missing something?

Describe the bug
I'm getting Another exception was thrown: A non-null String must be provided to a Text widget. when trying to access json subtree.

This is how the json file looks like

{
"bob": {
"text1": "Hello"
}
}

And this is how I'm getting it Text(EzLocalization.of(context).get("bob.text1"),),

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.