-
Notifications
You must be signed in to change notification settings - Fork 17
/
translation-nav.yml
49 lines (48 loc) · 1.35 KB
/
translation-nav.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Translation navigation
description: A list of links to available translations
body: The active property indicates the current language.
accessibility_criteria: |
The translation navigation links must:
- identify the language of the link
- accept focus
- be focusable with a keyboard
- indicate when it has focus
- be usable with a keyboard
- change in appearance when touched (in the touch-down state)
- change in appearance when hovered
- be usable with touch
- be usable with [voice commands](https://www.w3.org/WAI/perspectives/voice.html)
- have visible text
fixtures:
# TODO: We need to add a fixture to show component rendering right-to-left.
# This is dependant on being able to provide context to fixtures.
default:
translations:
- locale: 'en'
base_path: '/en'
text: 'English'
active: true
- locale: 'hi'
base_path: '/hi'
text: 'हिंदी'
multiple_translations:
translations:
- locale: 'en'
base_path: '/en'
text: 'English'
active: true
- locale: 'fr'
base_path: '/fr'
text: 'French'
- locale: 'hi'
base_path: '/hi'
text: 'हिंदी'
- locale: 'ja'
base_path: '/ja'
text: '日本語'
- locale: 'ur'
base_path: '/ur'
text: 'اردو'
- locale: 'zh'
base_path: '/zh'
text: '中文'