Comments (2)
Hm, i'm not sure in android plurals, because i'm try two variants in native:
<resources>
<plurals name="android_res_test">
<item quantity="zero">zero chars "%s"</item>
<item quantity="one">%d char "%s"</item>
<item quantity="two">%d chars "%s"</item>
<item quantity="other">%d chars "%s"</item>
</plurals>
</resources>
And:
<resources>
<plurals name="android_res_test">
<item quantity="zero">zero chars "%s"</item>
<item quantity="one">%d char "%s"</item>
<item quantity="two">%d chars "%s"</item>
<item quantity="other">%d chars "%s"</item>
</plurals>
</resources>
Call inside activity:
this.resources.getQuantityString(R.plurals.android_res_test, 2, 2,"Same")
For all variants i'm get string without quotes.
If i'm add mirror for quotes: like: \"%s\"
or \"%s\"
then i'm get quoting around Same.
start of my research on android: https://developer.android.com/guide/topics/resources/string-resource
And if i'm add mirror in plurals of moko-resource it will be fine for android, but other platform has incorrect mirror for quot. Thanks for info
from moko-resources.
will be fixed in 0.24.0-beta-5
from moko-resources.
Related Issues (20)
- Font caching Issue for ios HOT 9
- Crash when using MR.strings() in unit tests iOS HOT 9
- Are there plans to support linuxX64? HOT 1
- Remove unnecessary dependency HOT 1
- How do I get the text value on JVM? HOT 2
- Have a dumb question about a different approach to save resources directly in a Kotlin file :D HOT 1
- 0.24.0-beta-5 creates invalid unicode escape sequence HOT 8
- Can't use Moko resources for JVM target HOT 3
- Add dark mode variants for images HOT 2
- How use fonts in swift ui
- Svg icons with alpha color become black on iOS
- Unable to compile after trying to update to 0.24.0: Unable to find method GenerateMultiplatformResourcesTask.onlyIf HOT 5
- Formatted localization string from swift code
- Gradle Sync failing in Android Studio HOT 3
- Cannot access 'dev.icerock.moko.resources.ResourceContainer' HOT 3
- Moko resources and tvOS support HOT 1
- Calling localized() outside of Composable function HOT 2
- Not being generated Resources String Kotlin 2.0 HOT 2
- Handle different build flavors resources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moko-resources.