implementing new features for localization of navigation element. First L10N for navigation is SV
This commit is contained in:
Родитель
15e70e63f0
Коммит
65344e8a8c
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: Ping Kong
|
||||
github: mozilla/mozilla-club-activity-ping-kong
|
||||
github_label: Visa på Github
|
||||
discourse_label: Diskussion
|
||||
image: pingkong.png
|
||||
competencies:
|
||||
- {label: "Webb mekanik", type: "web-mechanics"}
|
||||
|
|
5
app.js
5
app.js
|
@ -227,6 +227,11 @@
|
|||
return "";
|
||||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('withDefaultValue', function (value, safeValue) {
|
||||
var out = value || safeValue;
|
||||
return new Handlebars.SafeString(out);
|
||||
});
|
||||
|
||||
|
||||
// Start the app.
|
||||
|
|
|
@ -35,11 +35,11 @@
|
|||
</li>
|
||||
|
||||
<li>
|
||||
<a href="http://discourse.webmaker.org/category/clubs">Discussion</a>
|
||||
<a href="http://discourse.webmaker.org/category/clubs">{{withDefaultValue activity.meta.discourse_label "Discussion"}}</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/{{activity.meta.github}}">View on Github</a>
|
||||
<a href="https://github.com/{{activity.meta.github}}">{{withDefaultValue activity.meta.github_label "View on Github"}}</a>
|
||||
</li>
|
||||
<li>
|
||||
<select class="form-control" id="locales-switch">
|
||||
|
|
Загрузка…
Ссылка в новой задаче