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: 4/3/2025.
  • Short date: 4/3/25.
  • Medium date: Apr 3, 2025.
  • Long date: April 3, 2025.
  • Full date: Thursday, April 3, 2025.
  • Time: 5:43:33 PM.
  • Short time: 5:43 PM.
  • Medium time: 5:43:33 PM.
  • Long time: 5:43:33 PM UTC.
  • Full time: 5:43:33 PM UTC.