Compare commits

..
Author SHA1 Message Date
Daniel Gray 8ff61cc074 feat!: Enable jp language (#3304) 2026-11-07 13:40:43 +00:00
10 changed files with 39 additions and 39 deletions

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }}
strategy:
matrix:
lang: [es, fr, he, it, ko, nl, ru, zh-Hant, zh-TW]
lang: [es, fr, he, it, ja, nl, ru, zh-Hant, zh-TW]
fail-fast: false
uses: ./.github/workflows/build.yml
with:
+1 -1
View File
@@ -176,7 +176,7 @@ jobs:
strategy:
matrix:
lang: [en, es, fr, he, it, ko, nl, ru, zh-Hant]
lang: [en, es, fr, he, it, ja, nl, ru, zh-Hant]
steps:
- name: Download Repository
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
build:
strategy:
matrix:
lang: [en, es, fr, he, it, ko, nl, ru, zh-Hant, zh-TW]
lang: [en, es, fr, he, it, ja, nl, ru, zh-Hant, zh-TW]
permissions:
contents: read
uses: ./.github/workflows/build.yml
+4 -4
View File
@@ -191,10 +191,10 @@ extra:
link: /nl/
lang: nl
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f3-1f1f1.svg
- name: 한국어
link: /ko/
lang: ko
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f0-1f1f7.svg
- name: 日本語
link: /ja/
lang: ja
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1ef-1f1f5.svg
- name: 中文 (繁體)
link: /zh-hant/
lang: zh-Hant
+6 -6
View File
@@ -70,10 +70,10 @@ if [[ "$blog" == false ]]; then
export BUILD_THEME_FONT_TEXT="Open Sans"
fi
# Set font if Korean
if [ "$language" == "ko" ]; then
export BUILD_THEME_FONT_CODE="Noto Sans KR"
export BUILD_THEME_FONT_TEXT="Noto Sans KR"
# set font if japanese
if [ "$language" == "ja" ]; then
export build_theme_font_code="Noto Sans JP"
export build_theme_font_text="Noto Sans JP"
fi
# Set font if russian or chinese
@@ -82,8 +82,8 @@ if [[ "$blog" == false ]]; then
export BUILD_THEME_FONT_TEXT="Noto Sans TC"
fi
# Set stylesheet if language is non-latin
if [[ "he ko ru zh-Hant zh-TW" =~ $language ]]; then
# Set stylesheet if hebrew or russian or chinese
if [[ "he ja ru zh-Hant zh-TW" =~ $language ]]; then
export TRANSLATION_STYLESHEET="assets/stylesheets/lang-$language.css?v=20240410"
fi
@@ -1,5 +1,5 @@
/*
/// Copyright (c) 2026 Jonah Aragon <jonah@triplebit.net>
/// Copyright (c) 2023 Jonah Aragon <jonah@triplebit.net>
///
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy of this software and associated documentation files (the "Software"),
@@ -20,39 +20,39 @@
/// DEALINGS
*/
/* korean */
/* japanese */
@font-face {
font-family: 'Noto Serif KR';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 400;
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-400-normal.woff) format('woff');
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-400-normal.woff) format('woff');
}
/* latin */
@font-face {
font-family: 'Noto Serif KR';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 400;
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-400-normal.woff) format('woff');
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-400-normal.woff) format('woff');
}
/* korean */
/* japanese */
@font-face {
font-family: 'Noto Serif KR';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 700;
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-700-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-korean-700-normal.woff) format('woff');
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/0-700-normal.woff) format('woff');
}
/* latin */
@font-face {
font-family: 'Noto Serif KR';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 700;
src: url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-700-normal.woff2) format('woff2'), url(https://fonts.bunny.net/noto-serif-kr/files/noto-serif-kr-latin-700-normal.woff) format('woff');
src: url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-jp@5.3.1/latin-700-normal.woff) format('woff');
}
h1, h2, h3, .md-header__topic {
font-family: "Bagnard", "Noto Serif KR", serif;
font-family: "Bagnard", "Noto Serif JP", serif;
font-weight: 700!important;
}
+2 -2
View File
@@ -14,8 +14,8 @@ definitions:
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ko" -%}
Noto Sans KR
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Sans TC
{%- else -%}
+4 -4
View File
@@ -22,10 +22,10 @@ definitions:
- &title_font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Serif TC
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- else -%}
Bagnard
{%- endif -%}
@@ -40,10 +40,10 @@ definitions:
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Sans TC
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- else -%}
Public Sans
{%- endif -%}
+4 -4
View File
@@ -18,10 +18,10 @@ definitions:
- &title_font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Serif TC
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- else -%}
Bagnard
{%- endif -%}
@@ -29,10 +29,10 @@ definitions:
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Sans TC
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- else -%}
Public Sans
{%- endif -%}
+4 -4
View File
@@ -22,8 +22,8 @@ definitions:
- &title_font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Serif TC
{%- else -%}
@@ -40,10 +40,10 @@ definitions:
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ja" -%}
Noto Serif JP
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Sans TC
{%- elif config.theme.language == ("ko") -%}
Noto Serif KR
{%- else -%}
Public Sans
{%- endif -%}