2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 04:56:48 +00:00
* Improve collect_translations.py

* Cleanup

* Update translation support

* Update release notes
This commit is contained in:
Oliver 2023-07-17 21:17:23 +10:00 committed by GitHub
parent 3085d98ce1
commit 7a11fdead8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- Enable label printing for stock locations
- Enable label printing for parts
- Updated translation support
### 0.12.5 - July 2023
---

View File

@ -34,11 +34,13 @@
<string>pt-BR</string>
<string>pt-PT</string>
<string>ru-RU</string>
<string>sl_SI</string>
<string>sv-SE</string>
<string>th-TH</string>
<string>tr-TR</string>
<string>vi-VN</string>
<string>zh-CN</string>
<string>zh-TW</string>
</array>
<key>CFBundleName</key>
<string>InvenTree</string>

View File

@ -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: