UI: render non-play history moves as a dim lowercase tag
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / ui (pull_request) Successful in 40s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 58s
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / ui (pull_request) Successful in 40s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 58s
Per owner feedback: pass/exchange/resign/timeout rows in the move history now read as a dim, parenthesised, lowercase tag — e.g. «(обмен)» — so they stand apart from a scored word. The move.* catalog values are lowercased (resign RU → «сдаюсь»); the parentheses and the muted colour (var(--text-muted)) are applied in the view via a .ha.sys modifier.
This commit is contained in:
@@ -14,9 +14,9 @@ describe('i18n catalog', () => {
|
||||
});
|
||||
|
||||
it('localizes move-history action labels', () => {
|
||||
expect(translate('ru', 'move.exchange')).toBe('Обмен');
|
||||
expect(translate('ru', 'move.pass')).toBe('Пас');
|
||||
expect(translate('en', 'move.exchange')).toBe('Exchange');
|
||||
expect(translate('ru', 'move.exchange')).toBe('обмен');
|
||||
expect(translate('ru', 'move.pass')).toBe('пас');
|
||||
expect(translate('en', 'move.exchange')).toBe('exchange');
|
||||
});
|
||||
|
||||
it('maps error codes to keys with a generic fallback', () => {
|
||||
|
||||
@@ -88,10 +88,10 @@ export const en = {
|
||||
'game.noHintOptions': 'No options with your letters.',
|
||||
'game.scores': 'Scores: {n}',
|
||||
|
||||
'move.pass': 'Pass',
|
||||
'move.exchange': 'Exchange',
|
||||
'move.resign': 'Resigned',
|
||||
'move.timeout': 'Timed out',
|
||||
'move.pass': 'pass',
|
||||
'move.exchange': 'exchange',
|
||||
'move.resign': 'resign',
|
||||
'move.timeout': 'timeout',
|
||||
|
||||
'result.victory': 'Victory',
|
||||
'result.defeat': 'Defeat',
|
||||
|
||||
@@ -89,10 +89,10 @@ export const ru: Record<MessageKey, string> = {
|
||||
'game.noHintOptions': 'Нет вариантов с вашим набором.',
|
||||
'game.scores': 'Очков: {n}',
|
||||
|
||||
'move.pass': 'Пас',
|
||||
'move.exchange': 'Обмен',
|
||||
'move.resign': 'Сдача',
|
||||
'move.timeout': 'Тайм-аут',
|
||||
'move.pass': 'пас',
|
||||
'move.exchange': 'обмен',
|
||||
'move.resign': 'сдаюсь',
|
||||
'move.timeout': 'тайм-аут',
|
||||
|
||||
'result.victory': 'Победа',
|
||||
'result.defeat': 'Поражение',
|
||||
|
||||
Reference in New Issue
Block a user