mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Tweaks (#401)
* Improve collect_translations.py * Cleanup * Update translation support * Update release notes
This commit is contained in:
parent
3085d98ce1
commit
7a11fdead8
3 changed files with 9 additions and 2 deletions
|
|
@ -91,12 +91,16 @@ def generate_locale_list(locales):
|
|||
with open("supported_locales.dart", "w") as output:
|
||||
|
||||
output.write("// This file is auto-generated by the 'collect_translations.py' script - do not edit it directly!\n\n")
|
||||
|
||||
output.write('import "package:flutter/material.dart";\n\n')
|
||||
output.write("const List<Locale> supported_locales = [\n")
|
||||
|
||||
output.write("const List<Locale> supported_locales = [\n");
|
||||
locales = sorted(locales)
|
||||
|
||||
for locale in locales:
|
||||
|
||||
if locale.startswith('.'):
|
||||
continue
|
||||
|
||||
splt = locale.split("_")
|
||||
|
||||
if len(splt) == 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue