This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init i18n support for French - fix #129
- Loading branch information
Showing
13 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,4 @@ practicalmeteor:mocha | |
xolvio:cleaner | ||
practicalmeteor:chai | ||
kadira:blaze-layout | ||
tap:i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"topogram_view": { | ||
"searchbox": "Lookup a node" | ||
}, | ||
"filter" : { | ||
"default" : "Choose from type", | ||
"title" : "Filter", | ||
"byDegree" : "Filter by degree", | ||
"clear" : "Clear" | ||
}, | ||
"infobox": { | ||
"group" : "group" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"topogram_view": { | ||
"searchbox": "Chercher un node" | ||
}, | ||
"filter" : { | ||
"default" : "Choix du groupe", | ||
"title" : "Filtrer", | ||
"byDegree" : "Filtrer par degré", | ||
"clear" : "Réinitialiser" | ||
}, | ||
"infobox": { | ||
"group" : "Groupe" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { TAPi18n } from 'meteor/tap:i18n' | ||
|
||
|
||
const localeFromBrowser = window.navigator.userLanguage || window.navigator.language; | ||
|
||
switchToLocale() | ||
|
||
// TODO : remove ugly and unreliable timeout... | ||
setTimeout(switchToLocale,1000); | ||
|
||
function switchToLocale() { | ||
|
||
// Setup language, try setting by browser (default en) | ||
let locale = 'en'; | ||
|
||
if (localeFromBrowser.match(/en/)) locale = 'en' | ||
if (localeFromBrowser.match(/fr/)) locale = 'fr' | ||
|
||
locale = 'fr' | ||
TAPi18n.setLanguage(locale) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
imports/ui/components/boxes/filterBox/filterByDegree/filterByDegree.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<template name="filterByDegree"> | ||
<label for="filterByDegree">Filter By Degree ({{maxMinSlider}})</label> | ||
<label for="filterByDegree">{{_ 'filter.byDegree' }} ({{maxMinSlider}})</label> | ||
<div id="filterByDegree" name="filterByDegree"></div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters