File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
specifyweb/frontend/js_src/lib/localization Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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+
34388 . Open [ /specifyweb/settings/** init** .py] ( /specifyweb/settings/__init__.py )
35399 . Add newly created language to ` LANGUAGES ` array.
364010 . 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
Original file line number Diff line number Diff 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
2727export const languages = Object . keys ( languageCodeMapper ) ;
You can’t perform that action at this time.
0 commit comments