josa - Korean Particle Handling
Thejosa() function selects the appropriate Korean particle based on whether the preceding word ends with a consonant (batchim):
Supported Particles
| Particle | With final consonant | Without final consonant |
|---|---|---|
μλ | μ | λ |
μ΄κ° | μ΄ | κ° |
μλ₯Ό | μ | λ₯Ό |
κ³Όμ | κ³Ό | μ |
μΌλ‘ | μΌλ‘ | λ‘ |
Using in Dictionary
plural - Pluralization Handling
Theplural() function returns different text based on the number:
Options
| Option | Condition | Description |
|---|---|---|
zero | n === 0 | Text when count is 0 |
one | n === 1 | Text when count is 1 |
other | otherwise | Default text (required) |
Using in Dictionary
createFormat - Number/Date Formatting
ThecreateFormat() 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