icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.08k stars 121 forks source link

Override resources in other module #759

Open mndsl opened 4 weeks ago

mndsl commented 4 weeks ago

We have a module (e.g. Module A) with 5k+ strings (10+ languages), which are used in multiple other modules (e.g. Module B, Module C) as dependency. Modules B and C are used in different multiplatform apps (say App 1, App 2) In App 1/2 some of these 5k+ texts needs to be different, depending of the app requirements. Is it possible App 1/2 somehow to override some of the texts in Module A, so Module B/C display these modified texts.

Currently we copy/paste all the 5k texts in all languages in App 1 and 2, but this is very hard to support, as new apps in the future may use the same strings, and when a string need to be added or fixed because of an error, we have to do this in very large number of files.

Alex009 commented 3 weeks ago

hello. overrides will works for android but will not works on other platforms...i can't say some way how to implement this feature. to do this we need research and experiments