Skip to content

Commit 95d81f1

Browse files
committed
#1538 - added Thai language support via Noto Sans Thai
1 parent bec0721 commit 95d81f1

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

docs/css/base-minimal-no-grid.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/base-minimal.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/ckeditor5.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stories/Documentation/internationalization.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ Additional languages supported using [Noto Sans](https://fonts.google.com/noto/s
2121
- Georgian ([Noto Sans Georgian](https://fonts.google.com/noto/specimen/Noto+Sans+Georgian))
2222
- Khmer ([Noto Sans Khmer](https://fonts.google.com/noto/specimen/Noto+Sans+Khmer))
2323
- Korean ([Noto Sans Korean](https://fonts.google.com/noto/specimen/Noto+Sans+KR))
24+
- Thai ([Noto Sans Thai](https://fonts.google.com/noto/specimen/Noto+Sans+Thai))
2425

2526
To support a specific language, make sure the target page uses the correct HTML lang attribute. For example, use `<html lang="ja">` for Japanese. Then, follow the instructions to embed the corresponding web font into the page's header.

stories/assets/scss/_langs.scss

+19
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,23 @@
291291
h3 {
292292
font-weight: 700;
293293
}
294+
}
295+
296+
/* Thai */
297+
:lang(th) {
298+
299+
body,
300+
input,
301+
pre,
302+
button,
303+
p,
304+
div,
305+
h1,
306+
h2,
307+
h3,
308+
h4,
309+
h5,
310+
h6 {
311+
font-family: var(--undpds-font-family-notosans-thai);
312+
}
294313
}

stories/assets/scss/_variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ $Font-Family-NotoSans-Japanese: 'Noto Sans JP', sans-serif;
6565
$Font-Family-NotoSans-Georgian: 'Noto Sans Georgian', sans-serif;
6666
$Font-Family-NotoSans-Khmer: 'Noto Sans Khmer', sans-serif;
6767
$Font-Family-NotoSans-Korean: 'Noto Sans KR', sans-serif;
68+
$Font-Family-NotoSans-Thai: 'Noto Sans Thai', sans-serif;
6869

6970
// Spacing variables
7071
$spacing-01: 0.125rem;

0 commit comments

Comments
 (0)