Skip to content

locize/locize-polyglot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locize-polyglot-example

Example how to use polyglot and locize.com using a node.js server.

starting the sample

npm i
npm start

open localhost:8080 in your browser

What we do:

  1. We use the locize API Fetch Route to load the translations
  2. We add the translations to the returned html like described on the polyglot page
  3. From there use the polyglot function like used

Alternatively you could also load the resources via xhr and append that to polyglot via polyglot.extend

About

[DEPRECATED] example using polyglot with locize

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published