Moved the currency data from the "accounting.currency.commands" module into the currencies.csv file, separating the code and the data. Rewrote the test case to test against each all the content imported. The locales are read from the CSV file instead of hard-coded in the code, so that the translations are not hard-coded to Mandarin.

This commit is contained in:
2023-02-08 10:50:20 +08:00
parent d8e0e30c41
commit 354f1ff3d8
3 changed files with 48 additions and 22 deletions

View File

@ -0,0 +1,3 @@
code,name,l10n-zh_Hant,l10n-zh_Hans
TWD,New Taiwan dollar,新臺幣,新台币
USD,United States dollar,美元,美元
1 code name l10n-zh_Hant l10n-zh_Hans
2 TWD New Taiwan dollar 新臺幣 新台币
3 USD United States dollar 美元 美元