forked from ccpk1/ChoreOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrowdin.yml
More file actions
30 lines (26 loc) · 1.33 KB
/
Copy pathcrowdin.yml
File metadata and controls
30 lines (26 loc) · 1.33 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
# Crowdin Configuration File
# This maps your local file structure to the Crowdin project
# Norwegian translations required mapping because Crowdin uses 'no' (generic) for Google Translate, but Home Assistant requires 'nb' (Bokmål).
preserve_hierarchy: true
files:
# 1. Main Integration Translations
# Maps: /translations/en.json -> /translations/fr.json
- source: /custom_components/choreops/translations/en.json
translation: /custom_components/choreops/translations/%two_letters_code%.json
languages_mapping:
two_letters_code:
"no": nb
# 2. Report Translations (custom translations directory)
# Maps: /translations_custom/en_report.json -> /translations_custom/fr_report.json
- source: /custom_components/choreops/translations_custom/en_report.json
translation: /custom_components/choreops/translations_custom/%two_letters_code%_report.json
languages_mapping:
two_letters_code:
"no": nb
# 3. Notification Translations (custom translations directory)
# Maps: /translations_custom/en_notifications.json -> /translations_custom/fr_notifications.json
- source: /custom_components/choreops/translations_custom/en_notifications.json
translation: /custom_components/choreops/translations_custom/%two_letters_code%_notifications.json
languages_mapping:
two_letters_code:
"no": nb