Adding seperate translation files for packages.

This commit is contained in:
David Jay
2016-11-10 17:34:26 -05:00
parent 8bf6bea5b9
commit ff4e778dde
11 changed files with 57 additions and 63 deletions
+2 -12
View File
@@ -1,5 +1,6 @@
import React, {Component, PropTypes} from 'react';
import {I18n} from '../coral-framework';
import translations from './translations.json'
const name = 'coral-plugin-commentbox';
@@ -88,15 +89,4 @@ class CommentBox extends Component {
export default CommentBox;
const lang = new I18n({
en: {
post: 'Post',
reply: 'Reply',
comment: 'Comment',
},
es: {
post: 'Publicar',
reply: 'Respuesta',
comment: 'Comentario'
}
});
const lang = new I18n(translations);