Browse Source

Add german locale to timeline (#2234)

codeClimate
Uli Fahrer 8 years ago
committed by Alexander Wunschik
parent
commit
ed4bf21e76
3 changed files with 18 additions and 1 deletions
  1. +7
    -0
      docs/timeline/index.html
  2. +2
    -1
      examples/timeline/other/localization.html
  3. +9
    -0
      lib/timeline/locales.js

+ 7
- 0
docs/timeline/index.html View File

@ -1749,6 +1749,13 @@ var options = {
<code>nl_NL</code><br>
<code>nl_BE</code>
</td>
</tr>
<tr>
<td>German</td>
<td>
<code>de</code><br>
<code>de_DE</code><br>
</td>
</tr>
</table>

+ 2
- 1
examples/timeline/other/localization.html View File

@ -26,6 +26,7 @@
<option value="en" selected>en</option>
<option value="it">it</option>
<option value="nl">nl</option>
<option value="de">de</option>
</select>
</p>
@ -64,4 +65,4 @@
select.onchange();
</script>
</body>
</html>
</html>

+ 9
- 0
lib/timeline/locales.js View File

@ -11,6 +11,8 @@ exports['it'] = {
current: 'attuale',
time: 'tempo'
};
exports['it_IT'] = exports['it'];
exports['it_CH'] = exports['it'];
// Dutch
exports['nl'] = {
@ -19,3 +21,10 @@ exports['nl'] = {
};
exports['nl_NL'] = exports['nl'];
exports['nl_BE'] = exports['nl'];
// German
exports['de'] = {
current: 'Aktuelle',
time: 'Zeit'
};
exports['de_DE'] = exports['de'];

Loading…
Cancel
Save