You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drift/server/node_modules/globalize/examples/globalize-compiler
Max Leiter 208ba42c0e
Initial commit
3 years ago
..
.gitignore Initial commit 3 years ago
README.md Initial commit 3 years ago
app.js Initial commit 3 years ago
development.html Initial commit 3 years ago
messages.json Initial commit 3 years ago
package.json Initial commit 3 years ago
production.html Initial commit 3 years ago

README.md

Basic Globalize Compiler example

This example focuses on the Globalize Compiler and the Globalize runtime modules. It assumes knowledge of Globalize usage basics.

Requirements

1. Install Globalize dependencies and Globalize Compiler

This example uses npm to download Globalize dependencies (i.e., CLDR data and the Cldrjs library) and the Globalize Compiler.

npm install

Running the example

Development mode

  1. Start a server by running python -m SimpleHTTPServer or other alternative servers such as http-server, nginx, apache.
  2. Point your browser at http://localhost:8000/development.html. Note that the formatters are created dynamically. Therefore, Cldrjs and CLDR data are required.
  3. Understand the demo by reading the source code. We have comments there for you.

Production mode

  1. Compile the application formatters by running npm run build. See package.json to understand the actual shell command that is used. For more information about the compiler, see the Globalize Compiler documentation.
  2. Point your browser at ./production.html. Note that we don't need Cldrjs nor CLDR data in production here.
  3. Understand the demo by reading the source code. We have comments there for you.