cah4a / dart_gettext Goto Github PK
View Code? Open in Web Editor NEWA Dart implementation of gettext, a localization framework.
Home Page: https://pub.dartlang.org/packages/gettext
License: MIT License
A Dart implementation of gettext, a localization framework.
Home Page: https://pub.dartlang.org/packages/gettext
License: MIT License
hi
What are the steps you take to convert from source code to json file like es_ES.json ?
For now I found this method:
cd dart_gettext
pybabel extract -F babel.cfg -k __ -o messages.pot .
pybabel init -i messages.pot -d translations -l es_ES
then edit
translations/es_ES/LC_MESSAGES/messages.po
with poedit
then make a script using gettext-parser
to convert translations/es_ES/LC_MESSAGES/messages.po
to l10n/es_ES.json
do you work like this or ou have better dev flow?
I git clone https://github.com/cah4a/dart_gettext.git
then open the example dir in vscode.
The app display is ok but clicking the Change
button does nothing
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.1.10-pre.160, on Mac OS X 10.14.1 18B75, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
[✓] VS Code (version 1.30.2)
[✓] Connected device (1 available)
• No issues found!
for state.setState
in the example
"code": "invalid_use_of_protected_member",
"message": "The member 'setState' can only be used within instance members of subclasses of 'package:flutter/src/widgets/framework.dart'.",
"source": "dart",
"startLineNumber": 28,
"startColumn": 11,
Perhaps this is a silly question, but I cannot find how I can export an initial .po file. It seems I can use the gettext_parser to compile a .po file, but how do I get the object to pass to this function? I have a program with dynamic gettext calls in several places, and I want to run the program and then export a .po file.
Hello.
It is not clear how to generate/update .po files automatically.
I have a project on flutter with a lot of hardcoded strings. Is there way to extract string to .po files automatically? And how to update them in future?
This link - https://pub.dartlang.org/packages/flutter_gettext - is not alive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.