Stylianos Gakis
12/11/2025, 9:44 AMvalues directory, next to the strings.xml file, which was named static_strings.xml. This had this sort of content in there:
<resources>
<string name="foo" translatable="false">Foo</string>
...
</resources>
Which were strings that did not require translation.
When moving this to commonMain these strings are simply not picked up. This may be because CMP expects just a file named specifically strings.xml or it doesn't like the translatable="false" partStylianos Gakis
12/11/2025, 9:45 AMcurioustechizen
12/11/2025, 9:50 AMtranslatable="false" should work.Vilgot Fredenberg
12/11/2025, 9:52 AMtoString methods. Non-localized strings do not belong in resources in my opinion.Stylianos Gakis
12/11/2025, 10:08 AMAFAIK theYeah my guess is mostly that it doesn't like the odd name of the file itself tbh.should work.translatable="false"
Non-localized strings do not belong in resources in my opinion.In this case, these strings are specifically used in the language picker of the app So we want the string to be the language name exactly as it is in that same language. So to me, this particular use case really still feels like it should be in
strings.xml instead of somewhere in code.Konstantin Tskhovrebov
12/11/2025, 12:47 PMtranslatable="false" feature for CMP resourcescurioustechizen
12/11/2025, 12:48 PMtranslatable="false" in my project ...