All the language contents are managed inside the Google Spreadsheet Desktop Wallet Language.
If you need the access, please contact: [email protected] or [email protected]
Always add the en-US
content first and then the others, as by default the en-US
translation will be displayed if there are any missing contents yet to be translated.
Insert a new column with a proper Language Code following ISO 639-1 & ISO 3166-2 Language Localisation Standard.
Insert a new row with a variable name properly describing the nature of the content:
- e.g.
send.formSend.recipientAddress.label
- In
Send Page
=> ComponentFormSend
=> FieldrecipientAddress
=> Label
Desktop Wallet uses react-i18next
library for displaying different translations.
Here is an example code of the library usage:
import React from 'react';
import { useTranslation } from 'react-i18next';
export function MyComponent() {
const [t] = useTranslation();
return <p>{t('send.formSend.recipientAddress.label')}</p>
}
Whenever you've modified any contents inside the Spreadsheet, you will need to do the following step properly in order to take effective:
yarn generate-i18n
Reading code with raw i18n keys are hard, install i18n Ally VSCode extension for better reading experience.