forked from TryGhost/Ghost
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first time playing with ember-intl (part of format.js). using the 2.0 (beta) version to try side-loading of messages * installing grunt-plugin for downloading translated strings * removing old translation files * `grunt dev` will also download the translation files
- Loading branch information
Showing
11 changed files
with
148 additions
and
26 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
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,25 @@ | ||
export default { | ||
date: { | ||
'numeric': { | ||
month: 'numeric', | ||
day: 'numeric', | ||
year: 'numeric' | ||
}, | ||
long: { | ||
month: 'long', | ||
day : 'numeric', | ||
year : 'numeric' | ||
} | ||
}, | ||
number: { | ||
usd: { style: 'currency', currency: 'EUR' }, | ||
eur: { style: 'currency', currency: 'USD' } | ||
}, | ||
time: { | ||
hhmmss: { | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
second: 'numeric' | ||
} | ||
} | ||
}; |
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,15 @@ | ||
import Locale from 'ember-intl/models/locale'; | ||
|
||
export default Locale.extend({ | ||
locale: 'en', | ||
messages: { | ||
greeting: 'hello!', | ||
num: 99, | ||
product: { | ||
info: '{product} will cost {price, number, EUR} if ordered by {deadline, date, time}', | ||
html: { | ||
info: '<strong>{product}</strong> will cost <em>{price, number, EUR}</em> if ordered by {deadline, date, time}' | ||
} | ||
} | ||
} | ||
}); |
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,12 @@ | ||
import Locale from 'ember-intl/models/locale'; | ||
|
||
export default Locale.extend({ | ||
locale: 'es', | ||
messages: { | ||
greeting: 'hola!', | ||
num: 99, | ||
product: { | ||
info: '{product} va a costar {price, number USD} si es ordenado antes del {deadline, date, time}' | ||
} | ||
} | ||
}); |
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
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,30 @@ | ||
{ | ||
"common": { | ||
"slogan": "A free, open, simple publishing platform", | ||
"back": "Back" | ||
}, | ||
"navigation": { | ||
"visitBlog": "Visit blog", | ||
"content": "Content", | ||
"newPost": "New Post", | ||
"settings": "Settings", | ||
"yourProfile": "Your Profile", | ||
"signOut": "Sign Out" | ||
}, | ||
"pluralSample": "As of {currentDate, date, long} there are {numPost, plural, =0 {no posts} =1 {post} other {# posts} } avilable in this blog.", | ||
"settings": { | ||
"about": { | ||
"title": "About", | ||
"version": "Version", | ||
"environment": "Environment", | ||
"database": "Database", | ||
"mail": "Mail", | ||
"native": "Native", | ||
"userDocumentation": "User Documentation", | ||
"getHelp": "Get Help With Ghost", | ||
"thePeople": "The People Who Made it Possible", | ||
"incredibleGroupOfContributors": "Ghost is built by an incredible group of contributors from all over the world. Here are just a few of the people who helped create the version you’re using right now.", | ||
"howToGetInvolved": "Find out how you can get involved" | ||
} | ||
} | ||
} |
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