Hi I'm developing KMP app with Multiple flavours. ...
# multiplatform
s
Hi I'm developing KMP app with Multiple flavours. and following are the language issue I'm facing, For example in shared module I have three language, Default- English, French and Spanish. FYI: Using Moko-Resources 1. One flavour supports only Spanish and when I open my app with a device in english language my app shows Labels in english and API content in Spanish because my apis support only Spanish for that specific flavour, this raise the conflict. 2. If I force set the language(which is saved in my local storage for api call) with following code then app is is not updating as per the Locale for the flavours supporting more than one languages
Copy code
if (AppCompatDelegate.getApplicationLocales() != resolvedLocales) {
            AppCompatDelegate.setApplicationLocales(resolvedLocales)
        }
I'm using locale_config.xml in each flavour to tell app about supported languages. Any help will be appreciated please, write if more context needed.
t