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 55 additions and 40 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: [ar, es, fr, he, it, 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: [ar, en, es, fr, he, it, 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: [ar, en, es, fr, he, it, 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
@@ -167,10 +167,6 @@ extra:
name: !ENV [SOCIAL_TOR_SITE, "Hidden service"]
language_switcher: !ENV [LANGUAGE_SWITCHER, true]
alternate:
- name: عربي
link: /ar/
lang: ar
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f8-1f1e6.svg
- name: English
link: /en/
lang: en
@@ -195,6 +191,10 @@ extra:
link: /nl/
lang: nl
icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1f3-1f1f1.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
+5 -5
View File
@@ -70,10 +70,10 @@ if [[ "$blog" == false ]]; then
export BUILD_THEME_FONT_TEXT="Open Sans"
fi
# Set font if arabic
if [ "$language" == "ar" ]; then
export BUILD_THEME_FONT_CODE="ABeeZee"
export BUILD_THEME_FONT_TEXT="Open Sans"
# 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
@@ -83,7 +83,7 @@ if [[ "$blog" == false ]]; then
fi
# Set stylesheet if hebrew or russian or chinese
if [[ "ar he ru zh-Hant zh-TW" =~ $language ]]; then
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,24 +20,39 @@
/// DEALINGS
*/
/* arabic */
/* japanese */
@font-face {
font-family: 'ABeeZee';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 400;
src: url(https://fonts.bunny.net/abeezee/files/abeezee-latin-ext-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/abeezee/files/abeezee-latin-ext-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: 'ABeeZee';
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 400;
src: url(https://fonts.bunny.net/abeezee/files/abeezee-latin-400-normal.woff2) format('woff2'), url(https://fonts.bunny.net/abeezee/files/abeezee-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');
}
/* japanese */
@font-face {
font-family: 'Noto Serif JP';
font-style: normal;
font-weight: 700;
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 JP';
font-style: normal;
font-weight: 700;
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", "ABeeZee", serif;
font-family: "Bagnard", "Noto Serif JP", serif;
font-weight: 700!important;
}
+3 -3
View File
@@ -12,10 +12,10 @@ definitions:
Bagnard
- &font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
+6 -6
View File
@@ -20,10 +20,10 @@ definitions:
{{ layout.color or "#2d2d2d" }}
- &title_font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
@@ -38,10 +38,10 @@ definitions:
{%- endif -%}
- &font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
+6 -6
View File
@@ -16,10 +16,10 @@ definitions:
{{ layout.color or "#2d2d2d" }}
- &title_font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
@@ -27,10 +27,10 @@ definitions:
{%- endif -%}
- &font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
+6 -6
View File
@@ -20,10 +20,10 @@ definitions:
{{ layout.color or "#2d2d2d" }}
- &title_font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}
@@ -38,10 +38,10 @@ definitions:
{%- endif -%}
- &font_family >-
{%- if config.theme.language == "ar" -%}
ABeeZee
{%- elif config.theme.language == "he" -%}
{%- 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
{%- else -%}