Skip to content

Commit 4ab1ab9

Browse files
Merge pull request #3457 from specify/grantfitzsimmons-patch-1
Change German (Switzerland) code
2 parents 91a16c8 + 0379a49 commit 4ab1ab9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

specifyweb/frontend/js_src/lib/localization/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@
2727

2828
For example, add an entry like this:
2929

30-
```json
30+
```
3131
'es-es': 'es',
3232
```
3333

34+
`'es-es'` is the _lowercase_ Django language code
35+
36+
`'es'` is the Weblate language code
37+
3438
8. Open [/specifyweb/settings/**init**.py](/specifyweb/settings/__init__.py)
3539
9. Add newly created language to `LANGUAGES` array.
3640
10. Push the changes to `production` branch (weblate is setup to only look at
@@ -89,8 +93,8 @@ document, as well as:
8993

9094
- README in the branch that stores weblate metadata:
9195
https://github.com/specify/specify7/tree/weblate-localization#readme
92-
- The Weblate related portion of the test.yml file. [Link to that portion of
93-
code](https://github.com/specify/specify7/blob/8462d9bbe2bac448b2fcf56308d0298d4cc70604/.github/workflows/test.yml#L165-L210)
96+
- The Weblate related portion of the test.yml file.
97+
[Link to that portion of code](https://github.com/specify/specify7/blob/8462d9bbe2bac448b2fcf56308d0298d4cc70604/.github/workflows/test.yml#L165-L210)
9498
(note, this is a permalink, thus the code in question may be updated, yet the
9599
link will still show older version)
96100

specifyweb/frontend/js_src/lib/localization/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const languageCodeMapper = {
2121
'uk-ua': 'uk',
2222
'fr-fr': 'fr',
2323
'es-es': 'es',
24-
'de-ch': 'ch',
24+
'de-ch': 'de_CH',
2525
} as const;
2626

2727
export const languages = Object.keys(languageCodeMapper);

0 commit comments

Comments
 (0)