curated2: Thai and Hungarian get the move-control labels; !27's test file declares its DOM environment
This commit is contained in:
1 parent
f0777e362a
commit
f3d65ffb10
4 files changed
+9
-3
No files matched your search
@@ -681,4 +681,6 @@ export default {
|
||||
'Show all equipment': 'Minden eszköz megjelenítése',
|
||||
'Showing what you have in "{0}"': 'Az jelenik meg, ami megvan a(z) „{0}” profilban',
|
||||
'Showing all equipment': 'Minden eszköz megjelenítve',
|
||||
'Move up': 'Feljebb',
|
||||
'Move down': 'Lejjebb',
|
||||
}
|
||||
@@ -688,5 +688,7 @@ export default {
|
||||
'Add session note': 'เพิ่มบันทึกประจำรอบ',
|
||||
'Edit session note': 'แก้ไขบันทึกประจำรอบ',
|
||||
'How the session went as a whole.': 'ภาพรวมของการออกกำลังกายรอบนี้เป็นอย่างไร',
|
||||
'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'เรสต์-พอสจะฝึกเป็นเซ็ตวอร์มอัพหนึ่งเซ็ตที่จำนวนครั้งนี้ ตามด้วยเซ็ตหลักแบบเรสต์-พอสหนึ่งเซ็ตเสมอ — ไม่ใช้ค่า "เซ็ต"'
|
||||
'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'เรสต์-พอสจะฝึกเป็นเซ็ตวอร์มอัพหนึ่งเซ็ตที่จำนวนครั้งนี้ ตามด้วยเซ็ตหลักแบบเรสต์-พอสหนึ่งเซ็ตเสมอ — ไม่ใช้ค่า "เซ็ต"',
|
||||
'Move up': 'เลื่อนขึ้น',
|
||||
'Move down': 'เลื่อนลง',
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { resolve } from 'node:path'
|
||||
import React, { act } from 'react'
|
||||
import { LANGS } from '../lib/i18n-core.js'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { MemoryRouter, Route, Routes } from 'react-router-dom'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
@@ -215,8 +216,8 @@ describe('routine move controls', () => {
|
||||
describe('routine move-control locale coverage', () => {
|
||||
const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' })
|
||||
|
||||
it('defines both accessible names in all twelve locale packs', () => {
|
||||
expect(Object.keys(packs)).toHaveLength(12)
|
||||
it('defines both accessible names in every non-English locale pack', () => {
|
||||
expect(Object.keys(packs)).toHaveLength(Object.keys(LANGS).length - 1)
|
||||
Object.entries(packs).forEach(([path, pack]) => {
|
||||
expect(pack, `${path} is missing Move up`).toHaveProperty('Move up')
|
||||
expect(pack, `${path} is missing Move down`).toHaveProperty('Move down')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// @vitest-environment happy-dom
|
||||
import React, { act } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { Window } from 'happy-dom'
|
||||
|
||||
Reference in new issue
Block a user