1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 23:14:29 +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

@@ -59,12 +59,12 @@ export default class NotificationList extends Component {
{Button.component({
className: 'Button Button--icon Button--link',
icon: 'check',
title: 'Mark All as Read',
title: app.trans('core.mark_all_as_read'),
onclick: this.markAllAsRead.bind(this)
})}
</div>
<h4 className="App-titleControl App-titleControl--text">Notifications</h4>
<h4 className="App-titleControl App-titleControl--text">{app.trans('core.notifications')}</h4>
</div>
<div className="NotificationList-content">
@@ -98,7 +98,7 @@ export default class NotificationList extends Component {
);
})
: !this.loading
? <div className="NotificationList-empty">No Notifications</div>
? <div className="NotificationList-empty">{app.trans('core.no_notifications')}</div>
: LoadingIndicator.component({className: 'LoadingIndicator--block'})}
</div>
</div>