You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified the framework is correctly created and contains the localized files:
I tried a coupl of approaches to get the string:
// in swift; does not workLocalizer().getMyString().localized()// displays "my_string"// shared code in iosMain: Localizer object: fun getMyString(): StringDesc = StringDesc.Resource(MR.strings.my_string)// in swift; does not work; unresolved StringDescStringDesc.Resource(MR.strings.my_string).localize()// in swift; this works though, so the files are loadedNSLocalizedString("my_string", tableName:nil, bundle:Bundle(identifier:"jp.mylib.shared.MyLibShared")!, value:"", comment:"")// displays "My String!"
Do you have an idea on what the issue could be? Any pointer?
The text was updated successfully, but these errors were encountered:
in your case you not properly configure export of library. Kotlin/Native require use in export function platform artifact. so you should use export("dev.icerock.moko:resources-iosx64:${Versions.Libs.MultiPlatform.mokoResources}") on x64 and export("dev.icerock.moko:resources-iosarm64:${Versions.Libs.MultiPlatform.mokoResources}") on Arm64
Hi, I setup the library according to the documentation in version 0.9.0 and kotlin 1.3.70.
Now on Android, everything works as expected and I can localize my strings. On iOS though, only the translation key is displayed.
I verified the framework is correctly created and contains the localized files:
![Screen Shot 2020-04-01 at 11 59 11](https://user-images.githubusercontent.com/160785/78094731-396d8900-7410-11ea-8272-75fd48a375ce.png)
I tried a coupl of approaches to get the string:
Do you have an idea on what the issue could be? Any pointer?
The text was updated successfully, but these errors were encountered: