1.0.1 • Published 5 months ago
localazy-wrapper v1.0.1
localazy Wrapper
Is is for IOS, it will convert Localizable.strings
to json and then upload file to localazy, it is useful when you wanna use same locale json file in IOS
Upload Command
npx localazy-wrapper upload
Download Command
npx localazy-wrapper download
localazy.json
file formate should be like this
{
"upload": {
"files": [
{
"type": "json",
"pattern": "Ninja/en.lproj/file.json"
}
]
},
"conversion": {
"actions": [
{
"type": "ios-stringsdict",
"output": "Ninja/${lang}.lproj/Localizable.stringsdict",
"params": {
"variable": "COUNT"
}
},
{
"filterPlurals": true,
"type": "ios-strings",
"output": "Ninja/${lang}.lproj/Localizable.strings"
}
]
},
"download": {
"files": "Ninja/${lang}.lproj/${file}",
"includeSourceLang": true
}
}