Skip to content

Commit e2cab61

Browse files
committed
Add differences with requirejs i18n in the doc
1 parent 1eb435e commit e2cab61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/i18n.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ title: requirejs-dplugins/i18n
99
localized string.
1010

1111
##### Table of Contents
12+
[Differences with requirejs i18n](#differences-with-requirejs-i18n)
1213
[Creating an i18n bundle](#creating-an-i18n-bundle)
1314
[Using an i18n bundle](#using-an-i18n-bundle)
1415
[Building i18n bundles](#building-i18n-bundles)
1516

17+
## Differences with requirejs i18n
18+
19+
This plugin changes the way i18n bundles are built. While requirejs i18n adds bundles of a specified locale to the layer,
20+
`requirejs-dplugins/i18n` will create specific nls layers for each locale specified in the `localesList` option. The
21+
plugin will then load the appropriate nls layer depending on the user locale.
22+
23+
24+
1625
## Creating an i18n bundle
1726

1827
Assume a `my` package, containing a `lamp` module. This module provides a string representing the color of the lamp.

0 commit comments

Comments
 (0)