| import Vue from 'vue' |
| import VueI18n from 'vue-i18n' |
| |
| Vue.use(VueI18n) |
| |
| // Usage |
| // template - $t("message.hello") |
| // js - this.$i18n.t('message.hello') |
| |
| export const i18n = new VueI18n({ |
| locale: 'en', |
| messages: { |
| en: { |
| message: { |
| note: { |
| create_success: 'Note created successfully.', |
| import_click_or_drag: 'Click or drag a file to upload', |
| import_success: 'Note imported successfully.', |
| import_json_type_error: 'You can only upload JSON file!', |
| import_json_size_error: 'File must be smaller than 1 MB!', |
| clone_success: 'Note cloned successfully.', |
| clear_output_confirm: 'Do you want to clear the ouput for all the paragraphs?', |
| clear_output_success: 'Output cleared successfully for all the paragraphs.', |
| move_to_trash_confirm: 'Do you want to delete this Note?', |
| move_to_trash_content: 'This will move the note to Trash and you can still recover it.', |
| move_to_trash_success: 'Note moved to Trash successfully.', |
| delete_confirm: 'Do you want to delete the notebook permanently?', |
| delete_content: 'This will remove it permanently and can not be recovered.', |
| delete_success: 'Note deleted successfully.', |
| rename_success: 'Note renamed successfully', |
| empty_trash: 'Empty Trash' |
| } |
| } |
| }, |
| ja: { |
| message: { |
| hello: 'こんにちは、世界' |
| } |
| } |
| } |
| }) |