-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_README.json
More file actions
31 lines (31 loc) · 1.79 KB
/
Copy path_README.json
File metadata and controls
31 lines (31 loc) · 1.79 KB
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
{
"description": "Translation files for World Spinner internationalization (i18n). Each language has its own JSON file with matching keys.",
"structure": {
"note": "Translation files use a simple nested structure with a maximum of 2 levels deep",
"format": "category.key format, e.g., 'buttons.spinGlobe' or 'feedback.correct'",
"interpolation": "Use {variableName} for dynamic values, e.g., 'Hello {name}' or 'You discovered {country}'"
},
"categories": {
"capytan": "Tips and messages from Capytan the capybara guide",
"buttons": "All button labels throughout the application",
"clueBoard": "Clue board section headers, labels, and empty states",
"feedback": "User feedback messages (success, error, info)",
"discoveryLog": "Discovery log section headers, labels, and empty states",
"form": "Form field labels and placeholder text"
},
"addingLanguages": {
"step1": "Create a new JSON file named with the ISO 639-1 language code (e.g., fr.json for French)",
"step2": "Copy the structure from en.json",
"step3": "Translate all values while keeping the keys in English",
"step4": "Ensure the structure remains max 2 levels deep",
"step5": "Test that all keys match exactly with en.json",
"step6": "Submit a pull request with your new translation file"
},
"guidelines": {
"keepKeysInEnglish": "Always keep the JSON keys in English (e.g., 'buttons.spinGlobe'), only translate the values",
"maintainStructure": "Keep the same nesting structure as en.json",
"testLocally": "Run 'npm test' to verify your translation file is valid and has matching keys",
"ageAppropriate": "World Spinner is for kids ages 7-12, keep translations simple and friendly",
"preserveEmojis": "Keep emojis in button labels as they are universal visual cues"
}
}