diff --git a/.vercel/build.js b/.vercel/build.js index 9eb966cb347..893ab984954 100644 --- a/.vercel/build.js +++ b/.vercel/build.js @@ -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; } diff --git a/Rakefile b/Rakefile index ceb6df91d47..96bf20cb6db 100644 --- a/Rakefile +++ b/Rakefile @@ -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 \ No newline at end of file +end + +task :ko_build do + Rake::Task["lang:build"].invoke('ko') +end diff --git a/_data/i18n.yml b/_data/i18n.yml index 460c5ed52fa..eb5c48e8c36 100644 --- a/_data/i18n.yml +++ b/_data/i18n.yml @@ -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: "이 페이지가 얼마나 도움이 되었나요?" diff --git a/_lang/_config_ko.yml b/_lang/_config_ko.yml new file mode 100644 index 00000000000..33926f2812c --- /dev/null +++ b/_lang/_config_ko.yml @@ -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 diff --git a/public/index_ja.html b/public/index_ja.html index c44458e7979..4f7fd7ef1ca 100644 --- a/public/index_ja.html +++ b/public/index_ja.html @@ -1,6 +1,6 @@
- +