Skip to content

A tool for simplify create shared localization for both iOS and Android projects

License

Notifications You must be signed in to change notification settings

stepanp/locosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header

Tool to easely making localization for iOS and Android from shared source

Supports both 2 and 3 python versions

Get started

Prepare source

At first you need to make directory with localization sources. Source for each language is simple key-value JSON like:

{
	"score" : "Score",
	"points" : "You got %s points"
}

Here is example source directory

Configure output paths

Next, you need setup output paths. Make in source directory localization.json file like:

{
	"ios_path" : "../IosProject/",
	"android_path" : "../AndroidProject/app/src/main/res"
}

It supports absolute and relative paths

Run

Finally, just run locosync

./locosync.py %localization_source_dir%

Additional features

You can setup platform-specific strings:

{
	"string__android" : "This string will be included only in Android", 
	"string__ios" : "This string will be included only in iOS"
}

About

A tool for simplify create shared localization for both iOS and Android projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages