Coder Social home page Coder Social logo

kvs-coder / localized Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 169 KB

String extensions for different localizations and a translation utility to translate all your localized strings to desired languages without additional efforts.

Home Page: https://pub.dev/packages/localized

License: MIT License

Dart 93.67% Kotlin 0.44% Ruby 4.44% Swift 1.32% Objective-C 0.12%
dart flutter google googletranslate localization localizations microsoft microsofttranslate translation yandex yandextranslate

localized's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on how to improve the test Automation
  • โ˜• Iโ€™m currently learning how to play the guitar ๐ŸŽธ
  • ๐Ÿ’ฌ Ask me about Swift and Kotlin or Flutter and Dart.

localized's People

Contributors

avista1 avatar kvs-coder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

avista1

localized's Issues

Null Safety Error.

Describe the bug
A clear and concise description of what the bug is.
Getting the error below while running the command to generate translated json files.
flutter pub run localized:main -t -l ar,ca,de,el,en,fa,fil,fr,it,ko,pt,ru,sw,ur,vi,zh -p Google -k API_KEY -n25 Unhandled exception: type 'List<String?>' is not a subtype of type 'List<String>' of 'stringInOutList' #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:98:34) #1 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:297:43) #2 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:50) #3 Future.forEach.<anonymous closure> (dart:async/future.dart:495:26) #4 Future.doWhile.<anonymous closure> (dart:async/future.dart:535:26) #5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1546:10) #6 _RootZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1585:26) #7 Future.doWhile (dart:async/future.dart:551:18) #8 Future.forEach (dart:async/future.dart:493:12) #9 _batchTranslate (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:18) #10 _translateLocalizedFiles (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:265:15) <asynchronous suspension> #11 main (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:190:5) <asynchronous suspension> pub finished with exit code 255 evans@wanyoike:~/IdeaProjects/status$ flutter pub run localized:main -t -l ar,ca,de,el,en,fa,fil,fr,it,ko,pt,ru,sw,ur,vi,zh -p Google -k AIzaSyAXHG2wrU135NpkROiIG3HtfpSL1U7MulA -n 25 Unhandled exception: type 'List<String?>' is not a subtype of type 'List<String>' of 'stringInOutList' #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:98:34) #1 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:297:43) #2 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:50) #3 Future.forEach.<anonymous closure> (dart:async/future.dart:495:26) #4 Future.doWhile.<anonymous closure> (dart:async/future.dart:535:26) #5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1546:10) #6 _RootZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1585:26) #7 Future.doWhile (dart:async/future.dart:551:18) #8 Future.forEach (dart:async/future.dart:493:12) #9 _batchTranslate (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:18) #10 _translateLocalizedFiles (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:265:15) <asynchronous suspension> #11 main (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:190:5) <asynchronous suspension> pub finished with exit code 255
I am on Linux Ubuntu.
I noticed that even after adding version 2.0.6 on pubspec.yaml the null safety version is downloaded.

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.