Skip to content

Commit b9fdace

Browse files
author
web3blind
committed
Translate live screen announcements
1 parent 4dc76a9 commit b9fdace

6 files changed

Lines changed: 16 additions & 7 deletions

File tree

app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
<script src="js/config.js?v=20260621m"></script>
115115

116116
<!-- I18n -->
117-
<script src="js/i18n/ru.js?v=20260621d"></script>
118-
<script src="js/i18n/en.js?v=20260621d"></script>
117+
<script src="js/i18n/ru.js?v=20260621n"></script>
118+
<script src="js/i18n/en.js?v=20260621n"></script>
119119

120120
<!-- Utilities -->
121121
<script src="js/utils/helpers.js?v=20260621l"></script>

app/js/i18n/en.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var LangEN = {
9494
nav_character: 'Character',
9595
nav_hunt: 'Hunt',
9696
nav_bag: 'Bag',
97+
nav_inventory: 'Bag',
9798
nav_chronicle: 'Chronicle',
9899
nav_arena: 'Arena',
99100

@@ -711,6 +712,7 @@ var LangEN = {
711712
nav_quests: 'Quests',
712713
nav_boss: 'Boss',
713714
nav_settings: 'Settings',
715+
'nav_world-boss': 'World Boss',
714716

715717
// Seasons
716718
season_spring: 'Spring',

app/js/i18n/ru.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var LangRU = {
9494
nav_character: 'Персонаж',
9595
nav_hunt: 'Охота',
9696
nav_bag: 'Сумка',
97+
nav_inventory: 'Сумка',
9798
nav_chronicle: 'Хроника',
9899
nav_arena: 'Арена',
99100

@@ -711,6 +712,7 @@ var LangRU = {
711712
nav_quests: 'Задания',
712713
nav_boss: 'Босс',
713714
nav_settings: 'Настройки',
715+
'nav_world-boss': 'Мировой босс',
714716

715717
// Seasons
716718
season_spring: 'Весна',

app/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Viz Magic — Service Worker
2-
var CACHE_NAME = 'viz-magic-v27';
2+
var CACHE_NAME = 'viz-magic-v28';
33
var ASSETS = [
44
'/',
55
'/index.html',

tests/core-screen-accessibility-smoke.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function run() {
9090
var badLogs = logs.filter(function(l) { return l.type === 'error' || l.type === 'pageerror'; });
9191
assert.deepStrictEqual(failed, [], 'all core screens should render with named controls and no raw keys');
9292
assert.deepStrictEqual(badLogs, [], 'core screen smoke should not emit console errors/page errors');
93-
assert.ok(result.cachesKeys.indexOf('viz-magic-v27') !== -1, 'service worker cache should use latest cache name');
93+
assert.ok(result.cachesKeys.indexOf('viz-magic-v28') !== -1, 'service worker cache should use latest cache name');
9494
assert.ok(result.scripts.some(function(src) { return src.indexOf('helpers.js?v=20260621l') !== -1; }), 'helpers script should be cache-busted');
9595
assert.ok(result.scripts.some(function(src) { return src.indexOf('territory.js?v=20260621l') !== -1; }), 'territory script should be cache-busted');
9696
assert.ok(result.scripts.some(function(src) { return src.indexOf('state-engine.js?v=20260621m') !== -1; }), 'state engine script should be cache-busted');

tests/player-bug-regressions.test.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,13 @@ test('archive-backed guilds normalize missing optional arrays and rerender visib
316316
assert.ok(/getAttribute\('aria-hidden'\) !== 'true'/.test(guildJs), 'aria-hidden="false" should count as visible');
317317
});
318318

319-
test('high-traffic UI narration and inventory stat labels are translated', function () {
320-
['char_level_up', 'stat_pot', 'stat_res', 'stat_swf', 'stat_int', 'stat_for', 'duel_narrator_pre', 'duel_narrator_seal', 'duel_narrator_sealed', 'duel_narrator_waiting', 'duel_narrator_reveal'].forEach(function (key) {
319+
test('high-traffic UI narration, screen announcements, and inventory stat labels are translated', function () {
320+
[
321+
'char_level_up', 'stat_pot', 'stat_res', 'stat_swf', 'stat_int', 'stat_for',
322+
'duel_narrator_pre', 'duel_narrator_seal', 'duel_narrator_sealed',
323+
'duel_narrator_waiting', 'duel_narrator_reveal',
324+
'nav_inventory', "'nav_world-boss'"
325+
].forEach(function (key) {
321326
assert.ok(enJs.indexOf(key + ':') !== -1, 'English translation missing: ' + key);
322327
assert.ok(ruJs.indexOf(key + ':') !== -1, 'Russian translation missing: ' + key);
323328
});
@@ -327,7 +332,7 @@ test('high-traffic UI narration and inventory stat labels are translated', funct
327332

328333
test('service worker updates quickly and keeps navigations network-first', function () {
329334
const swJs = read('app/sw.js');
330-
assert.ok(/viz-magic-v27/.test(swJs), 'service worker cache version should be bumped');
335+
assert.ok(/viz-magic-v28/.test(swJs), 'service worker cache version should be bumped');
331336
assert.ok(/self\.skipWaiting\(\)/.test(swJs), 'service worker should activate new cache without waiting for all tabs to close');
332337
assert.ok(/self\.clients\.claim\(\)/.test(swJs), 'service worker should claim clients after activation');
333338
assert.ok(/event\.request\.mode === 'navigate'[\s\S]*fetch\(event\.request\)/.test(swJs), 'navigation requests should prefer network to avoid stale cached index');

0 commit comments

Comments
 (0)