/locale-optimize

Check blog for more info

Primary LanguageJavaScript

Optimal localization demo code

demo

This project is a tutorial on multiple ways to optimally bundle localization files.

These demos are purposely written in a simple and clear style. You will find no difficulty in following them to learn the basics.

How to use

Locally: Clone the repo.

$ git clone https://github.com/rahuljain936/locale-optimize.git

Install the dependencies.

$ cd locale-optimize

Now, play with the source files under the repo's demo* directories.

$ cd demo0*-**
$ npm install
$ npm run start

Index

  1. Demo01: Single Bundle
  2. Demo02: Dynamic Expr Import
  3. Demo03: Component level Dynamic Import
  4. Useful links

Demo01: Single Bundle (source)

$ cd demo01-singleBundle
$ npm install
$ npm run start

demo

Demo02: Dynamic Expr Import (source)

$ cd demo02-dynExprImport
$ npm install
$ npm run start

demo

Demo03: Component level Dynamic Import (source)

$ cd demo03-dynImport
$ npm install
$ npm run start

Useful links

License

MIT