Add option to customise file paths for namespaces and languages
William
not sure it's related to what is blocking for me right now with the CLI upload.
i have a folder structure like this
fr/
toast.json
app/
settings/
home.json
edit.json
[...]
so when i try to use the upload command to create my namespaces
simplelocalize upload \
--apiKey API_KEY \
--uploadPath ./apps/mobile-app/locales/{lang}/{ns}.json \
--uploadFormat single-language-json --dryRun
the result is not what i expect
for example i get:
[Dry run] Found file to upload, language=[en/components/impact], namespace=[ProjectItem], file: ./apps/mobile-app/locales/en/components/impact/ProjectItem.json
when i would like something like
[Dry run] Found file to upload, language=[en], namespace=[components/impact/ProjectItem], file: ./apps/mobile-app/locales/en/components/impact/ProjectItem.json
is there a way to tell that to the command or it's currently not possible?
other possible solution would be to use single file upload for the whole lang but use nesting for the namespaces.
so something like this:
// fr.json
{ "tabs-title": { "ACCOUNTS": "Comptes", "CARD": "Cartes", "HOME": "Accueil", "IMPACT": "Impact" } }
would give lang : fr and namespace :
tabs-title
Jakub Pomykała
open