You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/LANGUAGES.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ The contents of the file should be as follows:
24
24
"joiningScript": boolean,
25
25
"orderedByFrequency": boolean,
26
26
"bcp47": string,
27
+
"preferredFont":string,
27
28
"words": string[]
28
29
}
29
30
```
@@ -34,6 +35,7 @@ It is recommended that you familiarize yourselves with JSON before adding a lang
34
35
For `bcp47` put your languages [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
35
36
If the words you're adding are ordered by frequency (most common words at the top, least at the bottom) set the value of `orderedByFrequency` to `true`, otherwise `false`.
36
37
Finally, add your list of words to the `words` field.
38
+
If the language is not rendered correctly, you can provide a `preferredFont`. The font needs to be one of monkeytypes fonts. Check the [fonts documentation](./FONTS.md).
37
39
38
40
Then, go to `packages/schemas/src/languages.ts` and add your new language name at the _end_ of the `LanguageSchema` enum. Make sure to end the line with a comma. Make sure to add all your language names if you have created multiple word lists of differing lengths in the same language.
0 commit comments