Practice free →
Home › Per ICU + Unity Localization, the SAFEST way to …

Per ICU + Unity Localization, the SAFEST way to build a runtime string with a variable count is which?

AStringBuilder.Append per word with comma
BMessageFormat pattern with {count, plural, …}
CString.Format with %d substitution only
DString concatenation: 'You have ' + n + ' items'
Answer & Solution
Correct answer: B. MessageFormat pattern with {count, plural, …}
ICU MessageFormat + Unity Localization Smart Strings: declarative plural / select pattern picks the right grammatical form per locale. Concatenation breaks word order in many languages.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions