0

I have 2 language support in my app. Language files are arranged like below:

composeApp/src/commonMain/composeResources/values/lang.xml
composeApp/src/commonMain/composeResources/values-bn/lang.xml

and inside XMLs I keep strings like below:

<?xml version="1.0" encoding="UTF-8" ?>
<resources>
    <string name="hi">হাই</string>
</resources>

By using below code I am getting string but did not get any parameter of stringResource function for specific language.

stringResource(Res.string.hi)

I want to get specific language string (here Bengali language) without changing the operating system language.

0

1 Answer 1

2

This is a highly requested feature. See this YouTrack issue.

For now, there is a workaround which is described in the official documenttions as well.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.