- import Messages from './message.csv';
- import UI from './ui.csv';
- import Errors from './error.csv'
- const i18n_data = {};
- for(const key in UI) {
- const data = {};
- data['error'] = Errors[key];
- data['message'] = Messages[key];
- data['ui'] = UI[key];
- i18n_data[key] = data;
- }
- export default i18n_data;
|