NextGlobeGen

acme.com
/en/t-function

Translator Function

t function is returned by the useTranslations hook and the createTranslator function. It is used to translate the messages to the current locale in the given namespace.

See the ICU docs and the following examples for available interpolation patterns.

  • Simple: message without any interpolations patterns.
  • Plural: You have 3 followers.
  • Complex: NextGlobeGen invites Jon1VK and 4 other people to their party.
  • Rich text : bold.
  • Escaped: {interpolation} <b>Bold</b> 'quoted'
  • String: abc.
  • Number: 12.34.
  • Integer: 12.
  • Currency: $12.34.
  • Percent: 1,234%.
  • Date: 8/15/2025.
  • Short date: 8/15/25.
  • Medium date: Aug 15, 2025.
  • Long date: August 15, 2025.
  • Full date: Friday, August 15, 2025.
  • Time: 12:34:06 PM.
  • Short time: 12:34 PM.
  • Medium time: 12:34:06 PM.
  • Long time: 12:34:06 PM UTC.
  • Full time: 12:34:06 PM UTC.