-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
88 additions
and
55 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
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,11 @@ | ||
doctype html | ||
html(lang=i18n.lng()) | ||
head | ||
title i18next sample | ||
script(src="http://code.jquery.com/jquery-1.7.min.js", type="text/javascript") | ||
script(src='i18next/i18next.js', type='text/javascript') | ||
|
||
body | ||
h1 Localized Route | ||
span= i18n.lng() + '/' | ||
span= t('route.imprint') |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"nav": { | ||
"home": "home de", | ||
"1": "link 1 de", | ||
"2": "link 2 de" | ||
}, | ||
"app": { | ||
"name": "i18n", | ||
"insert": "du bist __youAre__", | ||
"child": "__count__ Kind", | ||
"child_plural": "__count__ Kinder", | ||
"friend_context": "Ein Freund", | ||
"friend_context_male": "Ein Freund", | ||
"friend_context_female": "Eine Freundin" | ||
} | ||
"nav": { | ||
"home": "home de", | ||
"1": "link 1 de", | ||
"2": "link 2 de" | ||
}, | ||
"app": { | ||
"name": "i18n", | ||
"insert": "du bist __youAre__", | ||
"child": "__count__ Kind", | ||
"child_plural": "__count__ Kinder", | ||
"friend_context": "Ein Freund", | ||
"friend_context_male": "Ein Freund", | ||
"friend_context_female": "Eine Freundin" | ||
} | ||
} |
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,7 +1,9 @@ | ||
{ | ||
"app": { | ||
"area": "Area 51", | ||
"district": "District 9 ist spassiger als $t(app.area)" | ||
} | ||
} | ||
|
||
"route": { | ||
"imprint": "impressum" | ||
}, | ||
"app": { | ||
"area": "Area 51", | ||
"district": "District 9 ist spassiger als $t(app.area)" | ||
} | ||
} |
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,13 +1,13 @@ | ||
{ | ||
"app": { | ||
"company": { | ||
"name": "my company" | ||
} | ||
}, | ||
"attr": { | ||
"placeholder": "translated placeholder", | ||
"title": "translated title" | ||
}, | ||
"add": "add", | ||
"sprintf": "Hello %s, %s, %s and %s" | ||
"app": { | ||
"company": { | ||
"name": "my company" | ||
} | ||
}, | ||
"attr": { | ||
"placeholder": "translated placeholder", | ||
"title": "translated title" | ||
}, | ||
"add": "add", | ||
"sprintf": "Hello %s, %s, %s and %s" | ||
} |
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,10 +1,10 @@ | ||
{ | ||
"nav": { | ||
"home": "home", | ||
"1": "link 1", | ||
"2": "link 2" | ||
}, | ||
"btn": { | ||
"hoverMe": "hover me!" | ||
} | ||
"nav": { | ||
"home": "home", | ||
"1": "link 1", | ||
"2": "link 2" | ||
}, | ||
"btn": { | ||
"hoverMe": "hover me!" | ||
} | ||
} |
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,11 +1,11 @@ | ||
{ | ||
"app": { | ||
"name": "i18n", | ||
"insert": "you are __youAre__", | ||
"child": "__count__ child", | ||
"child_plural": "__count__ children", | ||
"friend_context": "A friend", | ||
"friend_context_male": "A boyfriend", | ||
"friend_context_female": "A girlfriend" | ||
} | ||
"app": { | ||
"name": "i18n", | ||
"insert": "you are __youAre__", | ||
"child": "__count__ child", | ||
"child_plural": "__count__ children", | ||
"friend_context": "A friend", | ||
"friend_context_male": "A boyfriend", | ||
"friend_context_female": "A girlfriend" | ||
} | ||
} |
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,7 +1,9 @@ | ||
{ | ||
"app": { | ||
"area": "Area 51", | ||
"district": "District 9 is more fun than $t(app.area)" | ||
} | ||
} | ||
|
||
"route": { | ||
"imprint": "imprint" | ||
}, | ||
"app": { | ||
"area": "Area 51", | ||
"district": "District 9 is more fun than $t(app.area)" | ||
} | ||
} |
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