diff --git a/sync-translations.js b/sync-translations.js index afe78cfe..4815704d 100644 --- a/sync-translations.js +++ b/sync-translations.js @@ -21,7 +21,7 @@ const placeholderRegexp = /<([a-zA-Z_0-9]+)>/gi; function match(originalObj, translatedObj, path = "/") { for (const key in originalObj) { - if (!translatedObj[key]) { + if (!translatedObj.hasOwnProperty(key)) { console.warn(" | Missing key", path + key); translatedObj[key] = originalObj[key]; continue; @@ -60,7 +60,7 @@ function match(originalObj, translatedObj, path = "/") { } for (const key in translatedObj) { - if (!originalObj[key]) { + if (!originalObj.hasOwnProperty(key)) { console.warn(" | Obsolete key", path + key); delete translatedObj[key]; } diff --git a/translations/base-ar.yaml b/translations/base-ar.yaml index 00c6d0b0..9e10dd65 100644 --- a/translations/base-ar.yaml +++ b/translations/base-ar.yaml @@ -728,6 +728,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-cz.yaml b/translations/base-cz.yaml index 6c7b5052..dd34958c 100644 --- a/translations/base-cz.yaml +++ b/translations/base-cz.yaml @@ -708,6 +708,12 @@ settings: enableColorBlindHelper: title: Režim pro barvoslepé description: Zapné různé nástroje, které vám umožní hrát hru i pokud jste barvoslepí. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Klávesové zkratky diff --git a/translations/base-de.yaml b/translations/base-de.yaml index 69d747dd..057020ea 100644 --- a/translations/base-de.yaml +++ b/translations/base-de.yaml @@ -728,6 +728,12 @@ settings: enableColorBlindHelper: title: Modus für Farbenblinde description: Aktiviert verschiedene Werkzeuge, die dir das Spielen trotz Farbenblindheit ermöglichen. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Tastenbelegung diff --git a/translations/base-el.yaml b/translations/base-el.yaml index 4c37ed19..3b7bec15 100644 --- a/translations/base-el.yaml +++ b/translations/base-el.yaml @@ -729,6 +729,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-es.yaml b/translations/base-es.yaml index 61903c93..77273462 100644 --- a/translations/base-es.yaml +++ b/translations/base-es.yaml @@ -717,6 +717,12 @@ settings: enableColorBlindHelper: title: Modo para Daltonicos description: Activa varias herramientas que permiten jugar si eres daltonico. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Atajos de Teclado diff --git a/translations/base-fr.yaml b/translations/base-fr.yaml index c0a9788c..7140e456 100644 --- a/translations/base-fr.yaml +++ b/translations/base-fr.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Mode Daltonien description: Active divers outils qui permettent de jouer à ce jeu si vous êtes daltonien. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Contrôles diff --git a/translations/base-hr.yaml b/translations/base-hr.yaml index 3b49c01d..2cad65a1 100644 --- a/translations/base-hr.yaml +++ b/translations/base-hr.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-hu.yaml b/translations/base-hu.yaml index b750fd1f..45a51e37 100644 --- a/translations/base-hu.yaml +++ b/translations/base-hu.yaml @@ -726,6 +726,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-it.yaml b/translations/base-it.yaml index c6314099..412d947a 100644 --- a/translations/base-it.yaml +++ b/translations/base-it.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-ja.yaml b/translations/base-ja.yaml index 22805f52..500238db 100644 --- a/translations/base-ja.yaml +++ b/translations/base-ja.yaml @@ -722,6 +722,12 @@ settings: enableColorBlindHelper: title: 色覚モード description: 色覚異常を持っていてもゲームがプレイできるようにするための各種ツールを有効化します。 + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: キー設定 diff --git a/translations/base-kor.yaml b/translations/base-kor.yaml index a1c08a32..e9f19157 100644 --- a/translations/base-kor.yaml +++ b/translations/base-kor.yaml @@ -728,6 +728,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: 키바인딩 diff --git a/translations/base-lt.yaml b/translations/base-lt.yaml index 8a927559..bd33d5b1 100644 --- a/translations/base-lt.yaml +++ b/translations/base-lt.yaml @@ -726,6 +726,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-nl.yaml b/translations/base-nl.yaml index 11dadd27..2deb72b7 100644 --- a/translations/base-nl.yaml +++ b/translations/base-nl.yaml @@ -724,6 +724,12 @@ settings: enableColorBlindHelper: title: Kleurenblindmodus description: Schakelt verschillende hulpmiddelen in zodat je het spel alsnog kunt spelen wanneer je kleurenblind bent. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Sneltoetsen diff --git a/translations/base-no.yaml b/translations/base-no.yaml index 9dea10a5..b3c1bc84 100644 --- a/translations/base-no.yaml +++ b/translations/base-no.yaml @@ -726,6 +726,12 @@ settings: enableColorBlindHelper: title: Fargeblind Modus description: Aktiverer forskjellige verktøy som lar deg spille spillet om du er fargeblind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Hurtigtaster diff --git a/translations/base-pl.yaml b/translations/base-pl.yaml index 3627d86b..8f66d2a0 100644 --- a/translations/base-pl.yaml +++ b/translations/base-pl.yaml @@ -752,6 +752,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Klawiszologia diff --git a/translations/base-pt-BR.yaml b/translations/base-pt-BR.yaml index 224b16f0..e53c845f 100644 --- a/translations/base-pt-BR.yaml +++ b/translations/base-pt-BR.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Controles diff --git a/translations/base-pt-PT.yaml b/translations/base-pt-PT.yaml index d956438e..a9f93efc 100644 --- a/translations/base-pt-PT.yaml +++ b/translations/base-pt-PT.yaml @@ -725,6 +725,12 @@ settings: enableColorBlindHelper: title: Modo Daltónico description: Ativa várias ferramentas para daltónicos. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Atalhos diff --git a/translations/base-ro.yaml b/translations/base-ro.yaml index 334ddeda..48b29af4 100644 --- a/translations/base-ro.yaml +++ b/translations/base-ro.yaml @@ -726,6 +726,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-ru.yaml b/translations/base-ru.yaml index f2cac852..1e0fee9e 100644 --- a/translations/base-ru.yaml +++ b/translations/base-ru.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Режим Дальтоника description: Включает различные инструменты, которые позволяют играть в игру дальтоникам. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Настройки управления diff --git a/translations/base-sv.yaml b/translations/base-sv.yaml index b8665e33..2aebe2ff 100644 --- a/translations/base-sv.yaml +++ b/translations/base-sv.yaml @@ -726,6 +726,12 @@ settings: enableColorBlindHelper: title: Färgblint läge description: Aktiverar olika verktyg som låter dig spela spelet om du är färbling. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Tangentbindningar diff --git a/translations/base-tr.yaml b/translations/base-tr.yaml index 532eb3fc..8084ee4a 100644 --- a/translations/base-tr.yaml +++ b/translations/base-tr.yaml @@ -727,6 +727,12 @@ settings: enableColorBlindHelper: title: Color Blind Mode description: Enables various tools which allow to play the game if you are color blind. + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: Keybindings diff --git a/translations/base-zh-CN.yaml b/translations/base-zh-CN.yaml index 4b2890ae..1e44992c 100644 --- a/translations/base-zh-CN.yaml +++ b/translations/base-zh-CN.yaml @@ -567,7 +567,7 @@ storyRewards: reward_mixer: title: 混合颜色 - desc: 恭喜!你解锁了混合机。在这个建筑中将两个颜色混合在一起(加法混合)。 + desc: The mixer has been unlocked - Combine two colors using additive blending with this building! reward_stacker: title: 堆叠 @@ -587,7 +587,7 @@ storyRewards: reward_miner_chainable: title: 链式开采机 - desc: 恭喜!你解锁了开采机链式变体。它可以将开采出来的资源传递给其他的开采机,使得资源提取更加高效! + desc: You have unlocked the chaining extractor! It can forward its resources to other extractors so you can more efficiently extract resources! reward_underground_belt_tier_2: title: 二级隧道 @@ -595,8 +595,7 @@ storyRewards: reward_splitter_compact: title: 小型合流机 - desc: >- - 恭喜!你解锁了平衡机小型合流机变体。它可以把两个输入合并到一个输出上。 + desc: You have unlocked a compact variant of the balancer - It accepts two inputs and merges them into one! reward_cutter_quad: title: 四向切割机 @@ -612,7 +611,7 @@ storyRewards: reward_storage: title: 仓库 - desc: 恭喜!你解锁了垃圾桶仓库变体。它可以暂时储存一些材料,有容量上限。 + desc: You have unlocked a variant of the trash - It allows to store items up to a given capacity! reward_freeplay: title: 自由模式 @@ -762,6 +761,12 @@ settings: enableColorBlindHelper: title: 色盲模式 description: 提供一些分辨颜色的工具。目前当鼠标移至颜色资源上方时,屏幕上方会显示颜色名称。 + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: 按键设置 diff --git a/translations/base-zh-TW.yaml b/translations/base-zh-TW.yaml index ef7a522f..973312d0 100644 --- a/translations/base-zh-TW.yaml +++ b/translations/base-zh-TW.yaml @@ -156,7 +156,7 @@ mainMenu: browserWarning: >- 很抱歉, 本遊戲在當前瀏覽器上可能運行緩慢! 使用chrome或者獲取獨立版以得到更好的體驗。 - savegameLevel: 第關/關 + savegameLevel: Level savegameLevelUnknown: 未知關卡 contests: @@ -258,7 +258,7 @@ dialogs: upgradesIntroduction: title: 解鎖建築升級 desc: >- - 你生產過的所有圖形都會被用來升級建築。升級菜單在屏幕右上角。 + 你生產過的所有圖形都會被用來升級建築。升級菜單在屏幕右上角。 不要銷毀你之前建造的工廠! massDeleteConfirm: @@ -343,7 +343,7 @@ ingame: # The notification when completing a level levelCompleteNotification: # is replaced by the actual level, so this gets 'Level 03' for example. - levelTitle: 第關 / 關 + levelTitle: Level completed: 完成 unlockText: 解鎖! buttonNextLevel: 下一關 @@ -529,7 +529,7 @@ buildings: name: 上色機(四向) description: 為圖形的四個角塗上不同的顏色。 mirrored: - name: &painter 上色機 (反向) + name: *painter description: *painter_desc trash: @@ -558,7 +558,7 @@ storyRewards: reward_painter: title: 上色 desc: >- - 上色機已解鎖。和圖形一樣,從顏色礦脈中開採顏色,然後將在上色機中將顏色塗在圖形上。

PS:我們正在開發色盲模式! + The painter has been unlocked - Extract some color veins (just as you do with shapes) and combine it with a shape in the painter to color them!

PS: If you are colorblind, there is a color blind mode in the settings! reward_mixer: title: 混色 @@ -758,6 +758,13 @@ settings: enableColorBlindHelper: title: 色盲模式 description: 如果您是色盲者,啟用了這設定,就可以玩遊戲了。 + + rotationByBuilding: + title: Rotation by building type + description: >- + Each building type remembers the rotation you last set it to individually. + This may be more comfortable if you frequently switch between placing + different building types. keybindings: title: 按鍵設置 hint: >-