Do you want the contents of the JSON files to be localized, or do you want to use JSON for your localization files? I'm assuming the latter.
I'm not sure Moko Resources can consume JSON files. All of their documentation specifies XML.
Here's what my tree looks like, with the
base
strings (fallback),
en
, and
ru
folders. I'm pretty sure you have to use the two-letter country code for the folder names.
See the docs.
a
alex009
05/16/2025, 5:28 AM
hi.
files directory not related to locale. only plurals and strings depends on locale.
but technically i think files can be implemented in locale-dependent way (android, apple support it). on jvm and js i think it also can be implemented.
you can create feature request issue.
h
Huy Tâm
05/22/2025, 7:38 AM
@Muaz KADAN
You can try push all file in android native module instead of moko resource.
├── files-tr/
│ └── data.json
├── files-ar/
│ └── data.json