Skip to content

Commit

Permalink
Add missing boardmatcher strings
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Mar 15, 2020
1 parent 34b5cac commit 03dbac4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
20 changes: 14 additions & 6 deletions ci/createI18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,29 @@ let spawnDolmGen = args =>
}
)

let boardmatcherStringsArr = [
...boardmatcherLibrary.map(pattern => pattern.name),
'Pass',
'Take',
'Atari',
'Suicide',
'Fill',
'Connect',
'Tengen',
'Hoshi'
]

let boardmatcherStrings = {
boardmatcher: Object.assign(
{},
...boardmatcherLibrary.map(pattern => ({
[pattern.name]: pattern.name
}))
...boardmatcherStringsArr.map(str => ({[str]: str}))
)
}

let boardmatcherStringsTemplate = {
boardmatcher: Object.assign(
{},
...boardmatcherLibrary.map(pattern => ({
[pattern.name]: null
}))
...boardmatcherStringsArr.map(str => ({[str]: null}))
)
}

Expand Down
4 changes: 3 additions & 1 deletion src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ exports.getLanguages = function() {
return languages
}

exports.loadLang(appLang)
if (appLang != null) {
exports.loadLang(appLang)
}

0 comments on commit 03dbac4

Please sign in to comment.