gulp-i18n-leverage
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "gulp-i18n-leverage", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Merge changes in default JSON into localized JSON for i18n-behavior", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,54 @@ # gulp-i18n-leverage | ||
## Quick Tour | ||
### Quick demo deployment | ||
``` | ||
git clone https://github.com/t2ym/polymer-starter-kit-i18n.git | ||
cd polymer-starter-kit-i18n | ||
npm install -g gulp bower # if missing | ||
npm install && bower install | ||
# Development build with scan/preprocess/leverage/bundle/feedback tasks | ||
gulp --dev | ||
# Run-time I18N demo on http://localhost:5000 | ||
gulp serve | ||
# Build-time I18N demo on http://localhost:5001 | ||
gulp serve:dist --dev | ||
``` | ||
### Change language on the demo | ||
##### 1. Press F12 to open debugger console on the browser | ||
##### 2. Navigate to the elements or DOM tab in the debugger | ||
##### 3. Change `lang` attribute of `html` element from "en" to "ja" or "fr" | ||
``` | ||
<html lang="ja"> | ||
``` | ||
### Update UI strings on the demo | ||
##### 1. Change any UI strings in the following HTMLs | ||
``` | ||
polymer-starter-kit-i18n/app/index.html | ||
/elements/my-greeting/my-greeting.html | ||
/elements/my-list/my-list.html | ||
``` | ||
##### 2. Merge changes into JSON files | ||
``` | ||
cd polymer-starter-kit-i18n | ||
gulp --dev | ||
``` | ||
##### 3. Check diffs | ||
``` | ||
git diff app | ||
``` | ||
## Workflow | ||
@@ -22,0 +74,0 @@ |
25272
323