mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 02:35:27 +00:00
Tweaks (#401)
* Improve collect_translations.py * Cleanup * Update translation support * Update release notes
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user