Skip to content

Commit 478caff

Browse files
committed
Moving embed JS tab to first place, localize Results tab.
Adding Japanese regional to localized files. Moving target repo to build variable.
1 parent 28481cb commit 478caff

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_js:
33
- '4'
44
script:
55
# clone gh-pages
6-
- git clone -b master https://${GH_TOKEN}@github.com/IgniteUI/help-samples.git dist
6+
- git clone -b master https://${GH_TOKEN}@${TARGET_REPO} dist
77

88
# wipe content in target folder
99
- rm -rf dist/${TRAVIS_BRANCH}

build/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"liveUrl": "https://igniteui.github.io/help-samples",
33
"strings": {
44
"resultEN": "Result",
5-
"resultJA": "Result"
5+
"resultJA": "結果"
66
},
77
"tabSize": 4,
88
"templateScriptTypes": [

build/createFiddleFiles.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,18 @@ module.exports = function(options) {
6868
basePath = path.dirname(file.path),
6969
relativePath = basePath.split("HTMLSamples").pop().replace(/\\/g, "/"),
7070
htmlFile, jsFile, cssFile,
71-
html = [], js = "", css = "",
71+
html = [], js = "", css = "",
72+
resultStr = file.lang === "ja" ? options.strings.resultJA : options.strings.resultEN,
7273
embed = {
7374
"embed": [{
74-
"label": "HTML",
75-
"path": path.posix.join(options.version, relativePath, "fiddle/demo.html")
76-
}, {
7775
"label": "JS",
7876
"path": path.posix.join(options.version, relativePath, "fiddle/demo.js")
7977
},{
78+
"label": "HTML",
79+
"path": path.posix.join(options.version, relativePath, "fiddle/demo.html")
80+
}, {
8081
"type": "htmlpage",
81-
"label": "Result",
82+
"label": resultStr,
8283
"url": options.liveUrl + path.posix.join("/" + options.version, relativePath, "/index.html")
8384
}]
8485
};

build/updateResources.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = function (options) {
4343
$ = file.cheerio = file.cheerio || cheerio.load(contents, { decodeEntities: false });
4444

4545
if (file.lang == "ja") {
46-
$("head").append("<script src=\"%%ignite-ui%%/js/i18n/infragistics-ja.js\"></script>")
46+
$("head").append("<script src=\"%%ignite-ui%%/js/i18n/infragistics-ja.js\"></script>");
47+
$("head").append("<script src=\"%%ignite-ui%%/js/modules/i18n/regional/infragistics.ui.regional-ja.js\"></script>");
4748
}
4849

4950
// script tags

0 commit comments

Comments
 (0)