gocal / gsheet_to_arb Goto Github PK
View Code? Open in Web Editor NEWImport translations (ARB/Dart) from Google Sheets
Home Page: https://pub.dev/packages/gsheet_to_arb
License: Other
Import translations (ARB/Dart) from Google Sheets
Home Page: https://pub.dev/packages/gsheet_to_arb
License: Other
Hi, I have an app that uses typical Flutter localization workflow with arb files, intl_translation and .dart files. Is there a way to import this translation data to the template Google sheet?
flutter_sheet_localization
seems to do what gsheet_to_arb
does in a simpler manner. I realize that this project was created earlier.
It would be useful to know the advantages this package has.
Hi Marcin,
It refers to Issue #23 in some way.
We can provide google sheet via url without any authentication. It is read-only of course.
Is it possible to use this package without authentication?
Anyway: Good job ;)
Pozdro!
hi, thank you for this useful tool :-)
In pubspec.yaml, petitparser dependency is set to this : ">=1.1.3 <3.0.0"
Version 3 is excluded so the last petitparser compatible version is 2.4.0 from June 2019.
petitparser projet has released several versions in 2020 (3.0.0 to 3.0.4) and some packages (flutter_svg) require version >3.0.0.
Could you update this dependency ?
gsheet_to_arb imports the first sheet no matter what sheetId is specified in config file
Not sure if this will be a priority issue but a lot of packages already migrated to support null safety.
/// number of songs plural
String numberOfSongsAvailable(int count) => Intl.plural(count,
zero: 'No songs found.',
one: 'One song found.',
two: '$count songs found.',
few: '$count songs found.',
other: '$count song found.',
many: '$count songs found.',
name: 'numberOfSongsAvailable',
args: [count],
desc: 'number of songs plural');
/// currency dolars
String amountDollars(int count) => Intl.plural(count,
one: '$count Canadian dollar',
other: '$count Canadian dollars',
name: 'amountDollars',
args: [count],
desc: 'currency dolars');
The documentation says that the client config should look like:
{
"client_id": "<id>",
"client_secret": "<secret>"
}
But the implementation tries to parse: (capital I on id)
{
"client_Id": "<id>",
"client_secret": "<secret>"
}
Because every version of gsheet_to_arb depends on analyzer ^0.33.0-alpha.0 and intl_translation 0.17.5 depends on analyzer ^0.36.0, gsheet_to_arb is incompatible with intl_translation 0.17.5.
And because no versions of intl_translation match >0.17.5 <0.18.0, gsheet_to_arb is incompatible with intl_translation ^0.17.5.
When running the command
pub run gsheet_to_arb:import --create-config gsheet_to_arb.yaml
I get the following error:
Unhandled exception:
FormatException: Could not find an option named "create-config".
#0 Parser.validate (package:args/src/parser.dart:261:21)
#1 Parser.parseLongOption (package:args/src/parser.dart:250:7)
#2 Parser.parse (package:args/src/parser.dart:90:11)
#3 ArgParser.parse (package:args/src/arg_parser.dart:320:45)
#4 main (file:///Users/isak/.pub-cache/hosted/pub.dartlang.org/gsheet_to_arb-0.0.6/bin/import.dart:24:10)
<asynchronous suspension>
#5 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:298:32)
#6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)
pub failed (255)
Could solve the issue by creating the config manually from the template file.
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.