Customise Languages
Last updated
Was this helpful?
Last updated
Was this helpful?
Let's add Hindi.
Step 1: Update transloco.config.js
to add hi
.
Step 2: Update the type.
Step 3: Update the Language Options constant.
Step 4: Update the dynamic keys comment in the Settings Page Component.
Step 5: Run the i18n:extract
script in package.json
. This will add the missing keys and generate hi.json
in /public/i18n/
.
Step 6: Update the values in hi.json
. Ensure the variables in dynamic translations are retained.
Done!