@salesforce/i18n
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

@salesforce/i18n scoped module

Reference implementation of @salesforce/i18n modules for all locales. A custom module loader is required to provision the appropriate locale-specific module.

Static modules are generated for all locales and available in dist/. Locales available on Salesforce Platform are exposed using lwc.config.json.

Typescript Interface

Refer to the dist/types/index.d.ts for Typescript interfaces for all @salesforce/i18n modules.

Module Naming

It is expected that consumers reference @salesforce/i18n modules in a locale-agnostic manner and rely on the module loader to provision the locale-appropriate implementation.

Locales available on Salesforce Platform are exposed using lwc.config.json with the naming scheme @salesforce/i18n/{module name}/{locale}.

For example, @salesforce/i18n/dir for locale es-SV is exposed as @salesforce/i18n/dir/es-SV.

A module loader may use this mapping to provision the locale-appropriate implementation.

Readme

Keywords

none

Package Sidebar

Install

npm i @salesforce/i18n

Weekly Downloads

139

Version

0.0.21

License

MIT

Unpacked Size

14.4 MB

Total Files

27069

Last publish

Collaborators

  • lwc-admin
  • dme722
  • nolanlawson
  • ire-npm-team-user
  • jburnie
  • abirchfieldsfdc
  • dlouvton
  • mobify
  • jmsjtu
  • jasonschroeder-sfdc
  • packagellama
  • maward
  • danielshox
  • duane.chew
  • dferro
  • jcourtner
  • jye-sf
  • adirasanam
  • hkii
  • iamaziz
  • dbreese-salesforce
  • ashokrudraraju
  • dhersam
  • demianbrecht
  • mbettio
  • damilareolowoniyi
  • mmadialagan
  • mjrust
  • salesforce-releases
  • kevinv11n
  • byao
  • pmdartus
  • ekashida
  • ravi.jayaramappa
  • apapko
  • jleen-sfdc
  • jqian
  • cwallsf
  • dhagberg-sf
  • khawkins
  • amphro
  • jodarove
  • sfdctaka
  • fernomac
  • jimjag
  • ivarley
  • jbartolotta-sfdc
  • caridy