2.0.0 • Published 1 month ago

@spryker/locale v2.0.0

Weekly downloads
154
License
-
Repository
-
Last release
1 month ago

locale

I18N

Any package may have it's own set of localization data.

Locale package will locate all such data by the following glob: libs/*/src/i18n/*.ts.

The file name must match the targeted locale name specified as folders in locales/*.

The file must export default interface called I18nLocaleDataPackage.

The name in each locale file must be specified and will be used to prefix all tokens with it via dot (.) - so later translations must reference it with this name prefixed. This is done for easier navigation of the source of translations.

For example:

  • If the file specifies that name is prefix
  • And if the file defined translation with token example
  • Then in the application to get this translation use token prefix.example

Bundling

Before the build phase all such locale files will be found in all packages and aggregated in single data files by a target language which later will be included in the specific locale NgModule via lazy-loading.


This library was generated with Nx.

Running unit tests

Run nx test locale to execute the unit tests.

2.0.0

1 month ago

2.0.0-rc.1

1 month ago

1.3.0-next.1

1 month ago

1.3.0-rc.0

1 month ago

1.3.1

1 month ago

1.2.0

3 months ago

1.2.0-next.0

4 months ago

1.1.1

4 months ago

1.1.1-next.0

4 months ago

1.0.2

8 months ago

1.0.2-next.1

8 months ago

1.0.2-next.0

8 months ago

1.1.0

7 months ago

1.1.0-next.4

7 months ago

1.1.0-next.2

7 months ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.1-rc.0

1 year ago

1.0.0-rc.1

1 year ago

1.0.0-rc.2

1 year ago

1.0.0-rc.0

1 year ago

0.3.6

2 years ago

0.3.6-next.0

2 years ago

0.3.5

2 years ago

0.3.5-beta.0

2 years ago

0.3.5-next.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.4-next.1

2 years ago

0.3.3-next.0

2 years ago

0.3.2-next.0

2 years ago

0.3.1-next.0

2 years ago

0.3.0

2 years ago

0.2.10

2 years ago

0.2.11-next.1

2 years ago

0.2.10-next.2

2 years ago

0.3.0-rc.4

2 years ago

0.3.0-rc.5

2 years ago

0.2.9-next.1

2 years ago

0.2.10-next.1

2 years ago

0.3.0-rc.3

2 years ago

0.3.0-rc.0

2 years ago

0.3.0-rc.2

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.3.0-alpha.0

3 years ago

0.3.0-alpha.1

3 years ago

0.2.8-beta.0

3 years ago

0.2.8-next.1

3 years ago

0.2.7

3 years ago

0.2.7-next.0

3 years ago

0.2.6

3 years ago

0.2.5-next.0

3 years ago

0.2.4

3 years ago

0.2.4-next.0

3 years ago

0.2.3

3 years ago

0.2.3-next.0

3 years ago

0.2.2-next.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.0-next.11

3 years ago

0.2.0-next.10

3 years ago

0.2.0-next.9

3 years ago

0.2.0-next.8

3 years ago

0.2.0-next.7

4 years ago

0.2.0-next.6

4 years ago

0.2.0-next.5

4 years ago

0.2.0-next.4

4 years ago

0.2.0-next.3

4 years ago

0.2.0-next.2

4 years ago

0.2.0-next.1

4 years ago

0.2.0-next.0

4 years ago

0.1.0-next.9

4 years ago

0.1.0-next.8

4 years ago

0.1.0-next.7

4 years ago

0.1.0-next.6

4 years ago

0.1.0-next.4

4 years ago

0.1.0-next.5

4 years ago

0.1.0-next.3

4 years ago

0.1.0-next.1

4 years ago

0.1.0-next.2

4 years ago

0.1.0-next.0

4 years ago