Organize share/ per hier(7)
This commit is contained in:
parent
6e39a625cc
commit
3686842a03
2 changed files with 26 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
## 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)
|
|
||||||
|
|
||||||
Tip:
|
|
||||||
|
|
||||||
`src/json/<locale>/<surahId>/info.json` can be generated
|
|
||||||
automatically from the contents of `src/json/surahs.json`
|
|
||||||
via: `rake t:surahs.json`
|
|
26
share/doc/al-quran.reflectslight.io/AddNewLanguage.txt
Normal file
26
share/doc/al-quran.reflectslight.io/AddNewLanguage.txt
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
= 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)
|
||||||
|
|
||||||
|
Tip:
|
||||||
|
|
||||||
|
'src/json/<locale>/<surahId>/info.json' can be generated
|
||||||
|
automatically from the contents of 'src/json/surahs.json'
|
||||||
|
via: 'rake t:surahs.json'
|
Loading…
Reference in a new issue