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
|
title: Ping Kong
|
||||||
github: mozilla/mozilla-club-activity-ping-kong
|
github: mozilla/mozilla-club-activity-ping-kong
|
||||||
|
github_label: Visa på Github
|
||||||
|
discourse_label: Diskussion
|
||||||
image: pingkong.png
|
image: pingkong.png
|
||||||
competencies:
|
competencies:
|
||||||
- {label: "Webb mekanik", type: "web-mechanics"}
|
- {label: "Webb mekanik", type: "web-mechanics"}
|
||||||
|
|
5
app.js
5
app.js
|
@ -227,6 +227,11 @@
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Handlebars.registerHelper('withDefaultValue', function (value, safeValue) {
|
||||||
|
var out = value || safeValue;
|
||||||
|
return new Handlebars.SafeString(out);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Start the app.
|
// Start the app.
|
||||||
|
|
|
@ -35,11 +35,11 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<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>
|
||||||
|
|
||||||
<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>
|
||||||
<li>
|
<li>
|
||||||
<select class="form-control" id="locales-switch">
|
<select class="form-control" id="locales-switch">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче