GithubHelp home page GithubHelp logo

rinlv / easy_localization_generator Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 18.0 916 KB

Download CSV file and generates the localization keys from an online Google Sheet.

License: MIT License

Kotlin 0.59% Swift 1.93% Objective-C 0.18% Dart 90.84% Ruby 6.46%

easy_localization_generator's Introduction

Hi there, I'm Rin! πŸ‘‹

Hi, I'm Rin Luu Van, a passionate self-taught Mobile developer from Vietnam.

  • 🌱 I always enjoy learning new thing
  • ⌨ I'm currently working with Flutter
  • πŸ‘― Part of Developer Community.
  • ️⚽ 2021 Goals: Contribute more to Open Source projects
  • ⚑ Fun fact: I love to playing football and listening to music

Languages

NOTE: Top languages does not indicate my skill level or something like that, it's a github metric of which languages I have the most code on github, it's a new feature of github-readme-stats

easy_localization_generator's People

Contributors

chyiiiiiiiiiiii avatar rinlv avatar svonidze avatar

Stargazers

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

Watchers

 avatar  avatar

easy_localization_generator's Issues

Error when use \n

Hi, thanks for this package!
I have a problem when I use \n in the google spreadsheet, when I run build_runner and download the csv file, the texts with \n skip the line and break the csv structure, I need to adjust these lines manually, do you have a way to skip the line without manually changing and adding \n?

version 0.3.0 conflicts with flutter localization because of Intl

Hi! so to keep it short here is the error I'm getting:

Because easy_localization_generator >=0.3.1 depends on intl ^0.18.1
  and every version of flutter_localizations from sdk depends on intl
  0.18.0, easy_localization_generator >=0.3.1 is incompatible with
  flutter_localizations from sdk.
And because form_builder_validators 9.0.0 depends on
  flutter_localizations from sdk and no versions of
  form_builder_validators match >9.0.0 <10.0.0,
  easy_localization_generator >=0.3.1 is incompatible with
  form_builder_validators ^9.0.0.

Would it be possible to downgrade Intl to 0.18.0 for maximum compatibility?

incompatible with easy_localization_loader 2.0.0.

flutter pub get
Resolving dependencies...

Because easy_localization_generator >=0.3.0 depends on http ^0.13.5 and easy_localization_loader 2.0.0 depends on http ^1.0.0, easy_localization_generator >=0.3.0 is incompatible with easy_localization_loader 2.0.0.
And because no versions of easy_localization_loader match >2.0.0 <3.0.0, easy_localization_generator >=0.3.0 is incompatible with easy_localization_loader ^2.0.0.

So, because example depends on both easy_localization_loader ^2.0.0 and easy_localization_generator ^0.3.1, version solving failed.
exit code 1

incompatible with easy_localization_loader 2.0.0.
plan to udpate ?

Lost ability to get translation keys since `.tr()` method was injected into the generated file for all properties

Getting translation keys is important in some cases when need to implement dynamic decision logic.

So this code

static const languageTypeNameMap = {
    LanguageType.known: LocaleKeys.languageTypeEnumKnown,
    LanguageType.learning: LocaleKeys.languageTypeEnumLearning,
    LanguageType.used: LocaleKeys.languageTypeEnumUsed,
  };

will be compiled with already set up translations.

Once a user changes the app language the languageTypeNameMap will still keep translations of the prev language.

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.