tik

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProducesCompleteICU

func ProducesCompleteICU(locale language.Tag, t tikgo.TIK) bool

ProducesCompleteICU returns true for TIKs that produce a complete ICU message that doesn't require no further translation. For example, a TIK like `Hello World` generates a complete ICU message for all locales, whereas the TIK `You have {# unread messages}` only produces a complete ICU for languages like Japanese, Korean and others that only support the "other" cardinal plural rule. For English, the TIK `You have {# unread messages}` would require an addiotional "one" rule that can't be produced from the TIK. Similarly, TIKs containing the `{ordinal}` placeholder like `You're {ordinal} in the waiting queue` can't produce a complete ICU message for English, which requires additional "one", "two" and "few" ordinal plural rules, whereas for Japanese it produces a complete one because it only requires rule "other". Other placeholders like `Today is {date-full}` always produce complete ICU messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL