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
Currently, the library allows you to access strings declared within the bounds of composables. On multiplatform, however, you'd have cases where you have APIs that need to access strings outside of compose. A simple use case would be displaying notifications as a result of some background task.
Proposal
Add a convenient accessor in the generated cafe.adriel.lyricist.Strings.kt file
fun getStrings():Strings {
return Strings[Locale.current.toLanguageTag()]?: defaultStrings
}
Do let me know what you make of it or if you need more information.
The text was updated successfully, but these errors were encountered:
Issue
Currently, the library allows you to access strings declared within the bounds of composables. On multiplatform, however, you'd have cases where you have APIs that need to access strings outside of compose. A simple use case would be displaying notifications as a result of some background task.
Proposal
Add a convenient accessor in the generated
cafe.adriel.lyricist.Strings.kt
fileDo let me know what you make of it or if you need more information.
The text was updated successfully, but these errors were encountered: