Open Tetraquark opened 3 years ago
@Tetraquark hi. for now strings can't be received by id. here same issue #218. and here #233 some implmenetation, which should be completed, merged and released
oh, no, this pull request not about strings resources. but simmilar case. so this feature should be implemented and we can use this post as guide - https://medium.com/xorum-io/simple-string-localization-in-kmm-beaffc5e7a17
also:
Adam Powell [G] 1 month ago Don't look up Android resource identifiers by string name. It's slow enough that it shouldn't be used in anything more than debug utilities or toy apps. The comment is downplaying the inefficiency.
Hi, is there an update on this issue? I can see that #218 was added to 0.18.0 release in January 2022 but this issue #245 was added to backlog in June 2022. Is it possible now to access a multiplatform string resource from MR object by its ID at runtime?
at now you can't access by string id. but you can do own expect/actual function. something like this:
Is it possible now to access a multiplatform string resource from MR object by its ID at runtime? Let's say there is such
strings.xml
:And in runtime need access to the string, something like this:
If there are no ways to do this, so I think then this will be a useful feature.