mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-06 02:15:22 -05:00
Feature/improve localization (#1147)
* use locale to set language header * rewrite i18n provider and drop dependency * rename file * rename CrudMixin to HttpRepo * refactor: code-cleanup * add crowdin source * remove unused translations * grab translations from dev branch * add translation support for foods, units, and labels * remove rich import
This commit is contained in:
@@ -2,6 +2,7 @@ from pathlib import Path
|
||||
|
||||
CWD = Path(__file__).parent
|
||||
|
||||
locale_dir = CWD / "locale"
|
||||
|
||||
migrations_paprika = CWD / "migrations/paprika.zip"
|
||||
|
||||
|
||||
8
tests/data/locale/af-ZA.json
Normal file
8
tests/data/locale/af-ZA.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"language": "af-ZA",
|
||||
"t1": "test2",
|
||||
"t2": {
|
||||
"1": "value1",
|
||||
"2": "value2"
|
||||
}
|
||||
}
|
||||
8
tests/data/locale/en-US.json
Normal file
8
tests/data/locale/en-US.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"language": "en-US",
|
||||
"t1": "test2",
|
||||
"t2": {
|
||||
"1": "value1",
|
||||
"2": "value2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user