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:
3
src/accounting/data/currencies.csv
Normal file
3
src/accounting/data/currencies.csv
Normal file
@ -0,0 +1,3 @@
|
||||
code,name,l10n-zh_Hant,l10n-zh_Hans
|
||||
TWD,New Taiwan dollar,新臺幣,新台币
|
||||
USD,United States dollar,美元,美元
|
|
Reference in New Issue
Block a user