Skip to content

Commit

Permalink
Added pt language to site
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ktub committed Jul 9, 2019
1 parent ded99b0 commit 4c9d169
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ module.exports = function(grunt) {
},
root: i18nTarget('en', true),
ja: i18nTarget('ja'),
fr: i18nTarget('fr')
fr: i18nTarget('fr'),
pt: i18nTarget('pt')
},

// Watch for changes
Expand Down
13 changes: 12 additions & 1 deletion src/partials/i18n-modal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<a role="button" href="/ja/{{ this.path }}">日本語</a>
</li>
{{/ if }}

{{!-- French --}}
{{# if i18n.lang.fr }}
<li class="i18nModal-languageBtn selected">
Expand All @@ -37,6 +37,17 @@
</li>
{{/ if }}

{{!-- Portuguese --}}
{{# if i18n.lang.pt }}
<li class="i18nModal-languageBtn selected">
<p>Português</p>
</li>
{{ else }}
<li class="i18nModal-languageBtn">
<a role="button" href="/pt/{{ this.path }}">Português</a>
</li>
{{/ if }}

<li class="i18nModal-cancel">
<a role="button" class="modal-close">{{ i18n.lang-modal.cancel }}</a>
</li>
Expand Down

0 comments on commit 4c9d169

Please sign in to comment.