mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-28 21:15:26 -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:
@@ -18,7 +18,7 @@ def fix_slug_food_names(db: AllRepositories):
|
||||
|
||||
all_foods = db.ingredient_foods.get_all()
|
||||
|
||||
seed_foods: dict[str, str] = json.loads(food_resources.en_us.read_text())
|
||||
seed_foods: dict[str, str] = json.loads(food_resources.en_US.read_text())
|
||||
|
||||
for food in all_foods:
|
||||
if food.name in seed_foods:
|
||||
|
||||
Reference in New Issue
Block a user