To add a new language option, please follow the steps below:
- Open
config/languages.js
and add the new language details as follows:
en: {
name: 'English',
shortName: 'Eng',
code: 'en',
},
-
The
en
folder fromlocales
should be duplicated and renamed to match the language code. Please translate all strings in these files. -
Finally, navigate to the
content/static-pages/what-is-ebpf
directory and duplicate theindex.md
file. Rename your copy to include your language code, such asindex.fr-fr.md
. Translate the entire file. Please note that the page title is located in the meta block at the top of the file.
-
For URLs in strings, add the language code where necessary, like changing
/applications
to/fr-fr/applications
. -
For strings containing tags like
<0>Subscribe</0> to bi-weekly eCHO News
, keep the tags unchanged as they indicate links or emphasized text. -
Do not translate strings named
icon
,card
, orimage
.