1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 06:54:26 +02:00

Make front-end localizable

This commit is contained in:
Toby Zerner
2015-07-17 17:43:28 +09:30
parent 7e75eb16ff
commit f93ff7cb3f
49 changed files with 438 additions and 148 deletions

View File

@@ -21,8 +21,8 @@ export default class NotificationGrid extends Component {
* @type {Array}
*/
this.methods = [
{name: 'alert', icon: 'bell', label: 'Alert'},
{name: 'email', icon: 'envelope-o', label: 'Email'}
{name: 'alert', icon: 'bell', label: app.trans('core.alert')},
{name: 'email', icon: 'envelope-o', label: app.trans('core.email')}
];
/**
@@ -181,7 +181,7 @@ export default class NotificationGrid extends Component {
items.add('discussionRenamed', {
name: 'discussionRenamed',
label: [icon('pencil'), ' Someone renames a discussion I started']
label: [icon('pencil'), ' ', app.trans('core.notify_discussion_renamed')]
});
return items;