Skip to main content
Sonamu provides helper functions to assist with writing multilingual messages.

josa - Korean Particle Handling

The josa() function selects the appropriate Korean particle based on whether the preceding word ends with a consonant (batchim):

Supported Particles

Using in Dictionary

plural - Pluralization Handling

The plural() function returns different text based on the number:

Options

Using in Dictionary

createFormat - Number/Date Formatting

The createFormat() function creates number and date formatters for a specific locale:

Using in Dictionary

Combining Multiple Helpers

Complex messages can be written by combining multiple helpers:

Using the SD Function

Writing and using dictionaries

Localized Columns

Multilingual DB column support