feat(i18n): add English and Simplified Chinese
This commit is contained in:
1 parent
38c4c8b781
commit
1e9e0678ee
149 files changed
+5356
-1144
No files matched your search
@@ -81,8 +81,8 @@ it('字体失败显示可刷新提示,之后 ready 完成和其他字体加载
|
||||
await Promise.resolve()
|
||||
expect(document.documentElement.dataset.rmFonts).toBe('error')
|
||||
expect(document.querySelectorAll('[role="alert"]')).toHaveLength(1)
|
||||
expect(document.querySelector('[role="alert"]')!.textContent).toContain('字体加载失败')
|
||||
expect(document.querySelector('[role="alert"] button')!.textContent).toBe('刷新页面')
|
||||
expect(document.querySelector('[role="alert"]')!.textContent).toContain('Fonts could not be loaded')
|
||||
expect(document.querySelector('[role="alert"] button')!.textContent).toBe('Refresh page')
|
||||
fonts.load()
|
||||
expect(document.documentElement.dataset.rmFonts).toBe('error')
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user