Format is automatically detected based on the file extension, so there’s no need to specify the format type when using it. ✨
Dashes (-) are automatically converted to underscores (_) for unique keys embedded within the name attribute to comply with Android syntax.
Translations with plurals
res/values/strings.xml
<resources> <stringname="greeting">Hello, %1$s!</string> <pluralsname="items_in_cart"> <itemquantity="one">You have %d item in your cart</item> <itemquantity="other">You have %d items in your cart</item> </plurals></resources>
res/values-es/strings.xml
<resources> <stringname="greeting">Hola, %1$s!</string> <pluralsname="items_in_cart"> <itemquantity="one">Tienes %d artículo en tu carrito</item> <itemquantity="other">Tienes %d artículos en tu carrito</item> </plurals></resources>
res/values-de/strings.xml
<resources> <stringname="greeting">Hallo, %1$s!</string> <pluralsname="items_in_cart"> <itemquantity="one">Sie haben %d Artikel in Ihrem Warenkorb</item> <itemquantity="other">Sie haben %d Artikel in Ihrem Warenkorb</item> </plurals></resources>