Skip to content

Commit f777788

Browse files
fix: add endonym mappings for more languages (#75)
Fixes #74
1 parent d01a8ef commit f777788

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

packages/docs-builder/src/gen-html.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,26 @@ import type { TocPageItem, TocSection } from './toc'
1212
import type { HtmlPage, MarkdownPage } from './types'
1313

1414
const langEndonyms: Map<string, string> = new Map([
15-
['en', 'English'],
15+
['ar', 'العربية'],
16+
['bg', 'Български'],
1617
['de', 'Deutsch'],
18+
['en', 'English'],
19+
['es', 'Español'],
20+
['fa', 'فارسی'],
21+
['fr', 'Français'],
22+
['he', 'עברית'],
23+
['hi', 'हिन्दी'],
1724
['it', 'Italiano'],
18-
['nb', 'Norsk&nbsp;Bokmål']
25+
['ja', '日本語'],
26+
['nb', 'Norsk&nbsp;Bokmål'],
27+
['nl', 'Nederlands'],
28+
['pt', 'Português'],
29+
['ru', 'Русский'],
30+
['sl', 'Slovenščina'],
31+
['sw', 'Kiswahili'],
32+
['tr', 'Türkçe'],
33+
['zh_Hans', '简体中文'],
34+
['zh_Hant', '繁體中文']
1935
])
2036

2137
/**

0 commit comments

Comments
 (0)