Skip to content

Commit

Permalink
Merge pull request #8398 from braze-inc/add-es-pt-commands
Browse files Browse the repository at this point in the history
Add es and pt-br commands
  • Loading branch information
josh-mccrowell-braze authored Nov 12, 2024
2 parents 08fbd76 + 8f8037c commit e09de53
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 6 deletions.
20 changes: 20 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ task :ko do
Rake::Task["lang"].invoke('ko')
end

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

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

task :fr_build do
Rake::Task["lang:build"].invoke('fr')
end
Expand All @@ -119,3 +127,15 @@ end
task :ko_build do
Rake::Task["lang:build"].invoke('ko')
end

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

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

task :es_build do
Rake::Task["lang:build"].invoke('es')
end
20 changes: 20 additions & 0 deletions _data/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,23 @@ ko:
edit_github: GitHub 에서 이 페이지를 편집합니다.
page_nav_title: 이 페이지에
helpful: "이 페이지가 얼마나 도움이 되었나요?"
pt-br:
next: PRÓXIMO
previous: ANTERIOR
popular_topic: Tópicos populares
helpful_resources: Recursos úteis
braze_status: STATUS DO SISTEMA BRAZE
braze_status_check: Verificando o status do Braze
edit_github: Editar esta página no GitHub
page_nav_title: Nesta página
helpful: "QUÃO ÚTIL FOI ESTA PÁGINA?"
es:
next: SIGUIENTE
previous: ANTERIOR
popular_topic: Temas populares
helpful_resources: Recursos útiles
braze_status: ESTADO DEL SISTEMA BRAZE
braze_status_check: Verificación del estado de Braze
edit_github: Editar esta página en GitHub
page_nav_title: En esta página
helpful: "¿QUÉ TAN ÚTIL FUE ESTA PÁGINA?"
59 changes: 59 additions & 0 deletions _lang/_config_es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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/es" # 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: es

destination: _site/docs/es

# Source dir
source: '.'

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

# Collections directory
collections_dir: _lang/es/


collections:
home:
title: Documentation
user_guide:
title: Guía del usuario
developer_guide:
title: Guía del desarrollador
api:
title: API
default_nav_url: basics/
partners:
title: Socios tecnológicos
help:
title: Ayuda
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/es/assets

# Algolia Search index
algolia:
index_name: "DocSearch_Spanish"
files_to_exclude:
- _lang/es/_hidden/*
- _lang/es/_hidden/*/* #exclude hidden subdirectories from indexing
- _lang/es/_hidden/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/es/_docs_pages/*
- _lang/es/_docs_pages/*/* #exclude hidden subdirectories from indexing
- _lang/es/_docs_pages/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/es/_home/Styling_Test_Page.md
2 changes: 0 additions & 2 deletions _lang/_config_fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ destination: _site/docs/fr
# Source dir
source: '.'

lab_index_name: "DocSearch_French"

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

Expand Down
2 changes: 0 additions & 2 deletions _lang/_config_ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ destination: _site/docs/ja
# Source dir
source: '.'

lab_index_name: "DocSearch_Japanese"

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

Expand Down
2 changes: 0 additions & 2 deletions _lang/_config_ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ destination: _site/docs/ko
# Source dir
source: '.'

lab_index_name: "DocSearch_Korean"

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

Expand Down
59 changes: 59 additions & 0 deletions _lang/_config_pt_br.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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/pt_br" # 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: pt_br

destination: _site/docs/pt_br

# Source dir
source: '.'

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

# Collections directory
collections_dir: _lang/pt_br/


collections:
home:
title: Documentation
user_guide:
title: Guia do usuário
developer_guide:
title: Guia do desenvolvedor
api:
title: API
default_nav_url: basics/
partners:
title: Parceiros de tecnologia
help:
title: Ajuda
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/pt_br/assets

# Algolia Search index
algolia:
index_name: "DocSearch_PortugueseBrazil"
files_to_exclude:
- _lang/pt_br/_hidden/*
- _lang/pt_br/_hidden/*/* #exclude hidden subdirectories from indexing
- _lang/pt_br/_hidden/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/pt_br/_docs_pages/*
- _lang/pt_br/_docs_pages/*/* #exclude hidden subdirectories from indexing
- _lang/pt_br/_docs_pages/*/*/* #exclude additional hidden subdirectories from indexing
- _lang/pt_br/_home/Styling_Test_Page.md
12 changes: 12 additions & 0 deletions public/index_es.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>Spanish 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/es/">Docs</a>
</body>
</html>
12 changes: 12 additions & 0 deletions public/index_pt_br.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>Portuguese Brazil 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/pt_br/">Docs</a>
</body>
</html>

0 comments on commit e09de53

Please sign in to comment.