Skip to content

Commit

Permalink
Merge pull request #8018 from braze-inc/ko-prep
Browse files Browse the repository at this point in the history
Add ko setting
  • Loading branch information
josh-mccrowell-braze authored Sep 4, 2024
2 parents b226e7b + 1ddda37 commit 1e04a87
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .vercel/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ if ((vercel_env == 'preview') && (branch_commit != 'develop')) {
// For preview, if language is english project, then don't build if it's an language branch
// if language is not english, then check if it's a language branch
if (vercel_lang == 'en') {
if (branch_check.includes('i18n_') || branch_commit.includes('i18n_')) {
if (branch_check.startsWith('i18n_') || branch_commit.startsWith('i18n_')) {
build_app = 0;
}
}
else{
build_app = 0;
if (branch_check.includes('i18n_') && branch_commit.includes('i18n_')) {
if (branch_check.startsWith('i18n_') && branch_commit.startsWith('i18n_') && branch_commit.includes(vercel_lang)) {
if (branch_check && (vercel_env == 'preview')) {
build_app = 1;
}
Expand Down
10 changes: 9 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,18 @@ task :ja do
Rake::Task["lang"].invoke('ja')
end

task :ko do
Rake::Task["lang"].invoke('ko')
end

task :fr_build do
Rake::Task["lang:build"].invoke('fr')
end

task :ja_build do
Rake::Task["lang:build"].invoke('ja')
end
end

task :ko_build do
Rake::Task["lang:build"].invoke('ko')
end
11 changes: 10 additions & 1 deletion _data/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ ja:
edit_github: GitHub でこのページを編集
page_nav_title: このページについて
helpful: 「このページはどの程度役に立ちましたか?」

ko:
next: 다음
previous: 이전
popular_topic: 인기 주제
help_resources: 유용한 리소스
braze_status: 브레이즈 시스템 상태
braze_status_check: 브레이즈 상태 확인
edit_github: GitHub 에서 이 페이지를 편집합니다.
page_nav_title: 이 페이지에
helpful: "이 페이지가 얼마나 도움이 되었나요?"
70 changes: 70 additions & 0 deletions _lang/_config_ko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Site settings
title: Braze Documentation
email: success@braze.com
description: >- # this means to ignore newlines until "baseurl:"
Welcome to Braze Documentation. Braze provides a comprehensive user engagement solution for your mobile apps.
baseurl: "/docs/ko" # the subpath of your site, e.g., /blog
homeurl: "https://www.braze.com" # the base hostname & protocol for your site, e.g., http://example.com
twitter_username: Braze
github_username: braze-inc

language: ko

destination: _site/docs/ko

# Source dir
source: '.'

lab_index_name: "DocSearch_Korean"

# Allows the DocSearch element to be inspected. Set to true locally, but don't
# check in in that state, or it will cause undesirable behavior in prod.
search_debug: false

# For local testing, set to false to increase build time by not pulling partner api
# and markdown data. MAKE SURE TO TURN BACK ON PRIOR TO COMMIT.
partner_api: true
markdown_api: true

# GitHub config
github_baseurl: 'https://github.com/braze-inc/braze-docs/blob/develop/_lang/ko/'

# Collections directory
collections_dir: _lang/ko/


collections:
home:
title: ドキュメンテーション
user_guide:
title: ユーザーガイド
developer_guide:
title: 開発者ガイド
api:
title: API
default_nav_url: basics/
partners:
title: テクノロジーパートナー
help:
title: ヘルプ
hidden: # Hidden pages not directly linked via navigation
title: Braze
docs_pages: # Site specific pages. ie main redirects and search
title: Braze


# Image asset pipeline setting for japr
asset_pipeline:
display_path: docs/ko/assets

# Algolia Search index
algolia:
index_name: "DocSearch_Korean"
files_to_exclude:
- _lang/ko/_hidden/*
- _lang/ko/_hidden/*/* #exclude hidden subdirectories from indexing
- _lang/ko/_hidden/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/ko/_docs_pages/*
- _lang/ko/_docs_pages/*/* #exclude hidden subdirectories from indexing
- _lang/ko/_docs_pages/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/ko/_home/Styling_Test_Page.md
4 changes: 2 additions & 2 deletions public/index_ja.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<link rel="icon" type="image/x-icon" href="/docs/fr/assets/favicon.ico" sizes="160x160">
<link rel="icon" type="image/x-icon" href="/docs/ja/assets/favicon.ico" sizes="160x160">
</head>
<body>
<h1>Japanese Braze Documentation Site</h1>
Expand All @@ -9,4 +9,4 @@ <h1>Japanese Braze Documentation Site</h1>
<br>
<a href="/docs/ja/">Docs</a>
</body>
</html>
</html>
12 changes: 12 additions & 0 deletions public/index_ko.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<head>
<link rel="icon" type="image/x-icon" href="/docs/ko/assets/favicon.ico" sizes="160x160">
</head>
<body>
<h1>Korean Braze Documentation Site</h1>
<b>If you get a 502 error, please wait up to 5 minutes, then refresh this page. </b>
<br>
<br>
<a href="/docs/ko/">Docs</a>
</body>
</html>

0 comments on commit 1e04a87

Please sign in to comment.