Hi, is there a way to have localized json files wi...
# moko
m
Hi, is there a way to have localized json files with moko? something like:
Copy code
commonMain/resources/MR/
├── files/
│   └── data.json
├── files-tr/
│   └── data.json
├── files-ar/
│   └── data.json
same 1
d
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
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
@Muaz KADAN You can try push all file in android native module instead of moko resource. ├── files-tr/ │ └── data.json ├── files-ar/ │ └── data.json