json_localization_translator 0.0.2+1 copy "json_localization_translator: ^0.0.2+1" to clipboard
json_localization_translator: ^0.0.2+1 copied to clipboard

json localization data translator, based on the 'translator' package

Language: English

json_localization_translator #

Pub

json localization data translator,

based on the 'translator' package

example: source 'en'

{
   "hello": "hello",
   "yellow": "yellow",
   "inner": {
      "test": "inside",
      "confirm": "confirm",
      "depth": {
         "depthTitle": "title"
      }
   }
}

example: translate 'zh-tw'

{
   "hello": "你好",
   "yellow": "黃色的",
   "inner": {
      "test": "裡面",
      "confirm": "確認",
      "depth": {
         "depthTitle": "標題"
      }
   }
}

Usage #

1. Use this package as an executable

  1. Activating a package

     dart pub global activate json_localization_translator
    
  2. Running

     json_localization_translator translate -i {input_file} -o {output_file} -f {from_language} -t {to_language}
    
  3. Command Line Arguments

    translate            translate command
    -i, --in             input file
    -o, --out            output file
    -f, --from           from language
    -t, --to             to language
    -h, --[no-]help      description
    

(If thrown error command not found on step1, check this add path to env)

2
likes
90
pub points
0%
popularity

Publisher

unverified uploader

json localization data translator, based on the 'translator' package

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

args, collection, translator

More

Packages that depend on json_localization_translator