Currency
The application's currency format can be customized for each language by modifying the lang.json
files located in the gksphone/config/locales
directory.
Step 1: Locate the Language Files
Navigate to the
gksphone/config/locales
directory.Each language has its own JSON file (e.g.,
en.json
for English,de.json
for German).
Step 2: Update the PHONE_SETTINGS_NUMBERFORMAT
Setting
PHONE_SETTINGS_NUMBERFORMAT
SettingIn each language file, there is a key named PHONE_SETTINGS_NUMBERFORMAT
that determines the number format and currency for that language.
Example Format:
This specifies the en-US
locale, which uses the dollar symbol ($
) for currency.
Step 3: Define the Currency Format for Each Language
Here are some examples of common locale codes and their corresponding currencies:
en-US
$
(US Dollar)
de-DE
€
(Euro)
en-GB
£
(British Pound)
fr-FR
€
(Euro)
ja-JP
¥
(Japanese Yen)
tr-TR
₺
(Turkish Lira)
Update the PHONE_SETTINGS_NUMBERFORMAT
in each file based on the desired currency.
Search for "APP_CURRENCY"
in the language file and change the currencies in that section to your liking
Restart the phone
You need to restart the phone for the changes to take effect.
Last updated