Skip to content
Snippets Groups Projects
Commit 60a982e4 authored by chris's avatar chris
Browse files

remove language service

parent 26059400
No related branches found
No related tags found
1 merge request!501Translations
......@@ -16,15 +16,19 @@ i18next.use(initReactI18next).init({
resources: {
en: {
translation: {
annotations: {
'Toggle code': 'Toggle code translation',
Wax: {
Annotations: {
'Toggle code': 'Toggle code translation',
},
},
},
},
es: {
translation: {
annotations: {
'Toggle code': 'Toggle code translation Spanish',
Wax: {
Annotations: {
'Toggle code': 'Toggle code translation Spanish',
},
},
},
},
......
......@@ -46,8 +46,8 @@ const Button = ({ view = {}, item }) => {
label={label}
onMouseDown={e => handleMouseDown(e)}
title={
i18n.exists(`annotations.${title}`)
? t(`annotations.${title}`)
i18n.exists(`Wax.Annotations.${title}`)
? t(`Wax.Annotations.${title}`)
: title
}
/>
......
import Service from '../../../Service';
export default class LuanguageService extends Service {
name = 'LuanguageService';
boot() {
console.log('in boot');
}
register() {}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment