This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"general": { | |
"back": "Back", | |
"cancel": "Cancel", | |
"confirm": "Are you sure?", | |
"destroy": "Delete", | |
"edit": "Edit", | |
"new": "New", | |
"test": "Test" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/h5bp/html5-boilerplate/releases/download/v7.1.0/html5-boilerplate_v7.1.0.zip -O temp.zip | |
unzip temp.zip -d phrase-app-globalize | |
rm temp.zip | |
ce phrase-app-globalize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install && npm run build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd dist | |
python3 -m http.server 8000 | |
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i cldr cldr-data --save | |
npm i globalize --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i gulp-concat --save-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('copy:globalize:deps', () => | |
gulp.src([ | |
'node_modules/cldrjs/dist/cldr.js', | |
'node_modules/cldrjs/dist/cldr/event.js', | |
'node_modules/cldrjs/dist/cldr/supplemental.js', | |
]).pipe(plugins().concat('cldr.js')) | |
.pipe(gulp.dest(`${dirs.dist}/js/vendor`)) | |
); | |
gulp.task('copy:globalize', () => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="js/vendor/cldr.js"></script> | |
<script src="js/vendor/globalize.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('copy:cldr:data', ['copy:cldr:en', 'copy:cldr:el'], () => | |
gulp.src([ | |
'node_modules/cldr-data/supplemental/timeData.json', | |
'node_modules/cldr-data/supplemental/weekData.json', | |
'node_modules/cldr-data/supplemental/plurals.json', | |
'node_modules/cldr-data/supplemental/likelySubtags.json', | |
]).pipe(gulp.dest(`${dirs.dist}/js/vendor/cldr/supplemental`)) | |
); | |
gulp.task('copy:cldr:el', () => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β tree dist/js/vendor | |
dist/js/vendor | |
βββ cldr | |
β βββ el | |
β β βββ ca-gregorian.json | |
β β βββ currencies.json | |
β β βββ numbers.json | |
β β βββ units.json | |
β βββ en | |
β β βββ ca-gregorian.json |