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: 1/11/2026.
  • Short date: 1/11/26.
  • Medium date: Jan 11, 2026.
  • Long date: January 11, 2026.
  • Full date: Sunday, January 11, 2026.
  • Time: 12:47:44 PM.
  • Short time: 12:47 PM.
  • Medium time: 12:47:44 PM.
  • Long time: 12:47:44 PM UTC.
  • Full time: 12:47:44 PM UTC.
  • Ordinal: It is your 21st visit.
  • This message was extracted using _defaultMessage