Skip to content

@tyravel/locale

Localization and translation for Tyravel

Install

bash
npm install @tyravel/locale

Metadata

FieldValue
Version1.0.1
Sourcepackages/locale
CategoryViews & client
Node.js>=26

Tyravel dependencies

Public exports

From the package entry point (dist/index.d.ts). Deep imports are not supported.

Values

  • DateInput
  • FormatCurrencyOptions
  • FormatDateOptions
  • FormatNumberOptions
  • LocalizedRouteGroupOptions
  • PluralCategory
  • RouteLocaleMiddlewareOptions
  • SetLocaleMiddlewareOptions
  • Translator
  • UpdateLocalePreferenceOptions
  • collectLocaleKeys
  • createRouteLocaleMiddleware
  • createSetLocaleMiddleware
  • createTranslator
  • diffMissingKeys
  • flattenTranslations
  • formatCurrency
  • formatDate
  • formatNumber
  • frameworkCatalogPath
  • loadFrameworkCatalog
  • loadLocaleFile
  • loadLocaleTranslations
  • localizedRouteGroup
  • parseAcceptLanguage
  • parsePluralPipe
  • persistLocaleToSession
  • pluralCategory
  • readRouteLocale
  • readUserLocale
  • resolveLocalePath
  • toDate
  • updateLocalePreference

Types

  • LocaleConfig
  • TranslateOptions
  • TranslationTree

Released under the MIT License.