Compare commits

..
1 Commits
Author SHA1 Message Date
Daniel Gray 8b59bd5929 feat!: Enable ko language (#3300) 2026-11-07 16:22:57 +00:00
11 changed files with 90 additions and 8 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, nl, ru, zh-Hant, zh-TW]
lang: [es, fr, he, it, ko, 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, nl, ru, zh-Hant]
lang: [en, es, fr, he, it, ko, 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, nl, ru, zh-Hant, zh-TW]
lang: [en, es, fr, he, it, ko, nl, ru, zh-Hant, zh-TW]
permissions:
contents: read
uses: ./.github/workflows/build.yml
+1 -1
View File
@@ -48,7 +48,7 @@ The initial free storage is limited to 2 GB, but with the completion of [certai
</div>
The Proton Drive web application was independently audited by Securitum in [2021](https://proton.me/community/open-source), and its Android and iOS apps underwent independent security audits by the same company in [2022](https://proton.me/blog/drive-mobile-apps-open-source). The audit reports are publicly available.
The Proton Drive web application has been independently audited by Securitum in [2021](https://proton.me/community/open-source), but the brand new mobile clients have not yet been publicly audited by a third party.
## Tresorit
+4
View File
@@ -191,6 +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: /zh-hant/
lang: zh-Hant
+10 -4
View File
@@ -60,8 +60,8 @@ if [[ "$blog" == false ]]; then
# Source per-language strings
set -a
# shellcheck disable=SC1090
source "includes/strings.$language.env"
# shellcheck disable=SC1090
source "includes/strings.$language.env"
set +a
# Set font if hebrew
@@ -70,14 +70,20 @@ 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"
fi
# Set font if russian or chinese
if [[ "ru zh-Hant zh-TW" =~ $language ]]; then
export BUILD_THEME_FONT_CODE="Noto Sans TC"
export BUILD_THEME_FONT_TEXT="Noto Sans TC"
fi
# Set stylesheet if hebrew or russian or chinese
if [[ "he ru zh-Hant zh-TW" =~ $language ]]; then
# Set stylesheet if language is non-latin
if [[ "he ko ru zh-Hant zh-TW" =~ $language ]]; then
export TRANSLATION_STYLESHEET="assets/stylesheets/lang-$language.css?v=20240410"
fi
+58
View File
@@ -0,0 +1,58 @@
/*
/// Copyright (c) 2026 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"),
/// to deal in the Software without restriction, including without limitation
/// the rights to use, copy, modify, merge, publish, distribute, sublicense,
/// and/or sell copies of the Software, and to permit persons to whom the
/// Software is furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
/// DEALINGS
*/
/* korean */
@font-face {
font-family: 'Noto Serif KR';
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');
}
/* latin */
@font-face {
font-family: 'Noto Serif KR';
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');
}
/* korean */
@font-face {
font-family: 'Noto Serif KR';
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');
}
/* latin */
@font-face {
font-family: 'Noto Serif KR';
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');
}
h1, h2, h3, .md-header__topic {
font-family: "Bagnard", "Noto Serif KR", serif;
font-weight: 700!important;
}
+2
View File
@@ -14,6 +14,8 @@ definitions:
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
{%- elif config.theme.language == "ko" -%}
Noto Sans KR
{%- elif config.theme.language == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Sans TC
{%- else -%}
+4
View File
@@ -24,6 +24,8 @@ definitions:
Suez One
{%- 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,6 +42,8 @@ definitions:
Suez One
{%- 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
View File
@@ -20,6 +20,8 @@ definitions:
Suez One
{%- 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,6 +31,8 @@ definitions:
Suez One
{%- 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
View File
@@ -22,6 +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 == ("ru" or "zh-Hant" or "zh-TW") -%}
Noto Serif TC
{%- else -%}
@@ -40,6 +42,8 @@ definitions:
Suez One
{%- 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 -%}