Skip to content

Commit 0946469

Browse files
committed
Update i18n.md
1 parent e2cab61 commit 0946469

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/i18n.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ title: requirejs-dplugins/i18n
55

66
# requirejs-dplugins/i18n
77

8-
`requirejs-dplugins/i18n` is a [requirejs plugin](http://requirejs.org/docs/plugins.html) which provides support for
8+
`requirejs-dplugins/i18n` is a [RequireJS plugin](http://requirejs.org/docs/plugins.html) which provides support for
99
localized string.
1010

1111
##### Table of Contents
12-
[Differences with requirejs i18n](#differences-with-requirejs-i18n)
13-
[Creating an i18n bundle](#creating-an-i18n-bundle)
14-
[Using an i18n bundle](#using-an-i18n-bundle)
15-
[Building i18n bundles](#building-i18n-bundles)
12+
[Differences with RequireJS i18n plugin](#differences-with-requirejs-i18n-plugin)
13+
[Creating an i18n bundle](#creating-an-i18n-bundle)
14+
[Using an i18n bundle](#using-an-i18n-bundle)
15+
[Building i18n bundles](#building-i18n-bundles)
1616

17-
## Differences with requirejs i18n
17+
## Differences with RequireJS i18n plugin
1818

19-
This plugin changes the way i18n bundles are built. While requirejs i18n adds bundles of a specified locale to the layer,
19+
If an application is not built, this plugin will behave exactly like RequireJS i18n plugin.
20+
The only difference is the way they build i18n bundles.
21+
22+
While RequireJS i18n plugin adds bundles of a specified locale to the layer,
2023
`requirejs-dplugins/i18n` will create specific nls layers for each locale specified in the `localesList` option. The
2124
plugin will then load the appropriate nls layer depending on the user locale.
2225

@@ -114,7 +117,7 @@ And the following directory structure:
114117
#### Notes:
115118
* The plugin uses the browser's `navigator.language` or `navigator.userLanguage` property to determine the required
116119
locale. Then it selects the most suitable locale from the root bundle. The locale can also be set using
117-
requirejs config:
120+
RequireJS config:
118121
```
119122
require.config({
120123
config: {

0 commit comments

Comments
 (0)