0x1eef
e1249e7b81
This change is a big one. It adds Farsi support, which by itself is significant. In the process of adding Farsi support other significant improvements were made: * Select.tsx component * TLocale (Quran/index.ts) * ...
21 lines
498 B
Text
21 lines
498 B
Text
== Introduction
|
|
|
|
This post documents the process
|
|
that should be followed when adding
|
|
a new language to the website.
|
|
|
|
Ideally the process would require a
|
|
minimal amount of manual work and be
|
|
fast to complete but we're not there
|
|
yet.
|
|
|
|
The process:
|
|
|
|
* Add new locale to file 'Rules'
|
|
(/Rules)
|
|
* Add new locale to array 'Quran.locales'
|
|
(/packages/Quran/src/index.ts)
|
|
* Add new locale (+ translations)
|
|
(/src/json/t.json)
|
|
(/src/json/surahs.json)
|
|
(/src/json/<locale>/<surahId>/{info,surah}.json)
|