Skip to content

tap:i18n added with French translation (default en) #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions i18n/en.i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"drag" : "drag here to reposition",
"back" : "Back",
"next" : "Next",
"finish" : "Finish",
"loading" : "Loading..."
}
7 changes: 7 additions & 0 deletions i18n/fr.i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"drag" : "Cliquer ici pour déplacer",
"back" : "Précédent",
"next" : "Suivant",
"finish" : "Fin",
"loading" : "Chargement..."
}
5 changes: 5 additions & 0 deletions package-tap.i18n
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"translation_function_name": "__", // The name for the translation function that
// will be available in package's namespace.
"helper_name": "_" // the name for the package templates' translation helper
}
1 change: 1 addition & 0 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Package.onUse(function (api) {
api.use(['ui', 'templating'], 'client');

api.use("mizzao:bootstrap-3@3.2.0", 'client');
api.use(["tap:i18n"], ["client", "server"]);

api.addFiles('templates.html', 'client');
api.addFiles('tutorial.styl', 'client');
Expand Down
8 changes: 4 additions & 4 deletions templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="modal-footer compact">
<span class="muted pull-left">
<span class="glyphicon glyphicon-move"></span> drag here to reposition
<span class="glyphicon glyphicon-move"></span> {{_ "drag"}}
</span>
{{> _tutorial_buttons}}
</div>
Expand All @@ -22,19 +22,19 @@
<div class="btn-group">
{{#if prevEnabled}}
<button class="btn btn-warning action-tutorial-back">
<i class="icon-white icon-arrow-left"></i> Back
<i class="icon-white icon-arrow-left"></i> {{_ "back"}}
</button>
{{/if}}

{{#if nextEnabled}}
<button class="btn btn-primary action-tutorial-next">
Next <i class="icon-white icon-arrow-right"></i>
{{_ "next"}} <i class="icon-white icon-arrow-right"></i>
</button>
{{/if}}

{{#if finishEnabled}}
<button class="btn btn-success action-tutorial-finish" disabled={{finishPending}}>
{{#unless finishPending}}Finish{{else}}Loading...{{/unless}}
{{#unless finishPending}}{{_ "finish"}}{{else}}{{_ "loading"}}{{/unless}}
<i class="icon-white icon-ok"></i>
</button>
{{/if}}
Expand Down