-
Add new language definition in
packages/keybr-keyboard/lib/language.ts
and defineid
,script
,direction
andalphabet
properties.export class Language implements EnumItem { static readonly LT = new Language( /* id= */ "lt", /* script= */ "latin", /* direction= */ "ltr", /* alphabet= */ "aąbcčdeęėfghiįyjklmnoprsštuųūvzž", ); }
-
Add your language definition to
ALL
enum inpackages/keybr-keyboard/lib/language.ts
. Enum is sorted alphabetically.
- Add dictionary of words in
packages/keybr-generators/dictionaries/dictionary-<language-id>.csv.gz
. File should be in CSV format, with two columns: word, and it's frequency separated by comma and gzipped for saving space, as it could be quite large. - TBD any info about dictionary file and it's content
- Run command
from root project folder. You should see output with your language id:
npm --workspace packages/keybr-generators run generate-languages
Files[lt] 184657 unique words [lt] Generated model (184344 bytes) [lt] Generated word list (10000 words)
packages/keybr-phonetic-model/assets/model-<language-id>.data
andpackages/keybr-content-words/lib/data/words-<language-id>.json
should be created. These files should be commited along with new language definition.