Skip to content

The aim of this tool is to convert android strings from XML to arb

License

Notifications You must be signed in to change notification settings

OmarMahmoud120/android_string_convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android String Convertor

command-line tool to convert android xml string to arb.

Usage

dart run bin/android_string_convertor.dart [options] {files/directory}

-p, --prefix prefix file name
(defaults to "app_")
-s, --[no-]sort Sort by key name.
-d, --[no-]directory Path is directory

Example

This example reads XML string file and convert it to arb file:

  • Single file
dart run bin/android_string_convertor.dart  ./example/en.xml
  • Multible files
dart run bin/android_string_convertor.dart  ./example/en.xml ./example/es.xml
  • Directory
dart run bin/android_string_convertor.dart -d ./example 
  • With srot the output by key
dart run bin/android_string_convertor.dart -s -d ./example
  • With outout prefix filename defaults to app_
dart run bin/android_string_convertor.dart -p "test_" -d ./example

About

The aim of this tool is to convert android strings from XML to arb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages