Merged in bugfix/integration-test-webapp (pull request #71)

fix(webapp): add i18n keys to fix integration for webapp package

* fix(webapp): add i18n keys to fix integration for webapp package


Approved-by: Paulo Veiga
This commit is contained in:
Clément CREUSAT 2023-06-30 13:17:05 +00:00 committed by Paulo Veiga
parent 3775202d7f
commit 8e45d7062c
11 changed files with 395 additions and 8 deletions

View File

@ -95,6 +95,18 @@
"zoom-panel.tooltip-zoom-to-fit": { "zoom-panel.tooltip-zoom-to-fit": {
"defaultMessage": "Einpassen" "defaultMessage": "Einpassen"
}, },
"editor-panel.tooltip-theme": {
"defaultMessage": "Thema"
},
"editor-panel.theme-title": {
"defaultMessage": "Thema"
},
"editor-panel.tooltip-connection-style-arc": {
"defaultMessage": "Bogen"
},
"editor-panel.tooltip-topic-share-none": {
"defaultMessage": "keine Form"
},
"editor-panel.tooltip-add-icon": { "editor-panel.tooltip-add-icon": {
"defaultMessage": "Symbol hinzufügen" "defaultMessage": "Symbol hinzufügen"
}, },

View File

@ -78,6 +78,18 @@
"editor-panel.link-panel-title": { "editor-panel.link-panel-title": {
"defaultMessage": "Enlace" "defaultMessage": "Enlace"
}, },
"editor-panel.tooltip-theme": {
"defaultMessage": "Tema"
},
"editor-panel.theme-title": {
"defaultMessage": "Tema"
},
"editor-panel.tooltip-connection-style-arc": {
"defaultMessage": "Arco"
},
"editor-panel.tooltip-topic-share-none": {
"defaultMessage": "Sin forma"
},
"editor-panel.tooltip-add-icon": { "editor-panel.tooltip-add-icon": {
"defaultMessage": "Agregar Icono" "defaultMessage": "Agregar Icono"
}, },

View File

@ -92,6 +92,9 @@
"editor-panel.tooltip-add-topic": { "editor-panel.tooltip-add-topic": {
"defaultMessage": "Ajouter un sujet" "defaultMessage": "Ajouter un sujet"
}, },
"editor-panel.tooltip-delete-topic": {
"defaultMessage": "Supprimer un sujet"
},
"editor-panel.tooltip-delete-sujet": { "editor-panel.tooltip-delete-sujet": {
"defaultMessage": "Supprimer le sujet" "defaultMessage": "Supprimer le sujet"
}, },
@ -131,6 +134,9 @@
"editor-panel.tooltip-topic-style": { "editor-panel.tooltip-topic-style": {
"defaultMessage": "Style de sujet" "defaultMessage": "Style de sujet"
}, },
"zoom-panel.tooltip-keyboard": {
"defaultMessage": "Clavier"
},
"zoom-panel.tooltip-clavier": { "zoom-panel.tooltip-clavier": {
"defaultMessage": "Raccourcis clavier" "defaultMessage": "Raccourcis clavier"
}, },
@ -222,11 +228,26 @@
"defaultMessage": "Courbe polyligne" "defaultMessage": "Courbe polyligne"
}, },
"shortcut-help-pane.overwrite-edit-topic": { "shortcut-help-pane.overwrite-edit-topic": {
"defaultMessage": "Sobrescribir el texto del tópico" "defaultMessage": "Remplacer le texte du sujet"
}, },
"shortcut-help-pane.overwrite-edit-topic-key": { "shortcut-help-pane.overwrite-edit-topic-key": {
"defaultMessage": "Commencer à écrire sur le sujet sélectionné" "defaultMessage": "Commencer à écrire sur le sujet sélectionné"
}, },
"editor-panel.tooltip-topic-share-none": {
"defaultMessage": "Aucune forme"
},
"editor-panel.tooltip-theme": {
"defaultMessage": "Thème"
},
"editor-panel.theme-title": {
"defaultMessage": "Thème"
},
"editor-panel.tooltip-connection-style-arc": {
"defaultMessage": "Arc"
},
"editor-panel.tooltip-topic-share-rounded": {
"defaultMessage": "Forme ronde"
},
"editor-panel.tooltip-connection-color": { "editor-panel.tooltip-connection-color": {
"defaultMessage": "Couleur" "defaultMessage": "Couleur"
}, },
@ -249,7 +270,7 @@
"defaultMessage": "La couleur de remplissage" "defaultMessage": "La couleur de remplissage"
}, },
"editor-panel.tooltip-topic-fill-color-default": { "editor-panel.tooltip-topic-fill-color-default": {
"defaultMessage": "Couleur de relleno por defecto" "defaultMessage": "Couleur de remplissage par défaut"
}, },
"action.delete": { "action.delete": {
"defaultMessage": "Supprimer" "defaultMessage": "Supprimer"

View File

@ -17,10 +17,52 @@
"editor.edit-description-mobile": { "editor.edit-description-mobile": {
"defaultMessage": "Возможности ограниченной версии Mindmap поддерживаются на мобильных устройствах. Используйте настольный браузер для полных возможностей редактора." "defaultMessage": "Возможности ограниченной версии Mindmap поддерживаются на мобильных устройствах. Используйте настольный браузер для полных возможностей редактора."
}, },
"editor-panel.tooltip-theme": {
"defaultMessage": "Тема"
},
"editor-panel.theme-title": {
"defaultMessage": "Тема"
},
"editor-panel.tooltip-connection-style-arc": {
"defaultMessage": "дуга"
},
"editor-panel.tooltip-topic-share-none": {
"defaultMessage": "нет формы"
},
"editor-panel.tooltip-connection-color": {
"defaultMessage": "Цвет"
},
"editor-panel.tooltip-connection-color-default": {
"defaultMessage": "Цвет по умолчанию"
},
"editor-panel.tooltip-connection-style": {
"defaultMessage": "Стиль подключения"
},
"editor-panel.tooltip-connection-style-curved-thick": {
"defaultMessage": "широкая кривая"
},
"editor-panel.tooltip-connection-style-curved-thin": {
"defaultMessage": "тонкая кривая"
},
"editor-panel.tooltip-topic-border-color-default": {
"defaultMessage": "Цвет границы по умолчанию"
},
"editor-panel.tooltip-topic-fill-color": {
"defaultMessage": "Цвет заливки"
},
"editor-panel.tooltip-topic-fill-color-default": {
"defaultMessage": "Цвет заливки по умолчанию"
},
"editor-panel.tooltip-topic-share-rounded": {
"defaultMessage": "Круглый"
},
"login.signup": { "login.signup": {
"defaultMessage": "Регистрация" "defaultMessage": "Регистрация"
}, },
"action.share": { "action.share": {
"defaultMessage": "Поделиться" "defaultMessage": "Поделиться"
},
"zoom-panel.tooltip-keyboard": {
"defaultMessage": "Клавиатура"
} }
} }

View File

@ -22,5 +22,47 @@
}, },
"action.share": { "action.share": {
"defaultMessage": "分享" "defaultMessage": "分享"
} },
"zoom-panel.tooltip-keyboard": {
"defaultMessage": "键盘"
},
"editor-panel.tooltip-theme": {
"defaultMessage": "主题"
},
"editor-panel.theme-title": {
"defaultMessage": "主题"
},
"editor-panel.tooltip-connection-style-arc": {
"defaultMessage": "弧"
},
"editor-panel.tooltip-topic-share-none": {
"defaultMessage": "没有形状"
},
"editor-panel.tooltip-connection-color": {
"defaultMessage": "颜色"
},
"editor-panel.tooltip-connection-color-default": {
"defaultMessage": "默认颜色"
},
"editor-panel.tooltip-connection-style": {
"defaultMessage": "连接方式"
},
"editor-panel.tooltip-connection-style-curved-thick": {
"defaultMessage": "宽曲线"
},
"editor-panel.tooltip-connection-style-curved-thin": {
"defaultMessage": "细曲线"
},
"editor-panel.tooltip-topic-border-color-default": {
"defaultMessage": "默认边框颜色"
},
"editor-panel.tooltip-topic-fill-color": {
"defaultMessage": "填充颜​​色"
},
"editor-panel.tooltip-topic-fill-color-default": {
"defaultMessage": "默认填充颜色"
},
"editor-panel.tooltip-topic-share-rounded": {
"defaultMessage": "圆形"
}
} }

View File

@ -125,6 +125,12 @@
"value": "Notiz" "value": "Notiz"
} }
], ],
"editor-panel.theme-title": [
{
"type": 0,
"value": "Thema"
}
],
"editor-panel.tooltip-add-icon": [ "editor-panel.tooltip-add-icon": [
{ {
"type": 0, "type": 0,
@ -173,6 +179,12 @@
"value": "Verbindungsstil" "value": "Verbindungsstil"
} }
], ],
"editor-panel.tooltip-connection-style-arc": [
{
"type": 0,
"value": "Bogen"
}
],
"editor-panel.tooltip-connection-style-curved-thick": [ "editor-panel.tooltip-connection-style-curved-thick": [
{ {
"type": 0, "type": 0,
@ -203,6 +215,12 @@
"value": "Thema löschen" "value": "Thema löschen"
} }
], ],
"editor-panel.tooltip-theme": [
{
"type": 0,
"value": "Thema"
}
],
"editor-panel.tooltip-topic-border-color": [ "editor-panel.tooltip-topic-border-color": [
{ {
"type": 0, "type": 0,
@ -281,6 +299,12 @@
"value": "Linienform" "value": "Linienform"
} }
], ],
"editor-panel.tooltip-topic-share-none": [
{
"type": 0,
"value": "keine Form"
}
],
"editor-panel.tooltip-topic-share-rectangle": [ "editor-panel.tooltip-topic-share-rectangle": [
{ {
"type": 0, "type": 0,

View File

@ -119,6 +119,12 @@
"value": "Nota" "value": "Nota"
} }
], ],
"editor-panel.theme-title": [
{
"type": 0,
"value": "Tema"
}
],
"editor-panel.tooltip-add-icon": [ "editor-panel.tooltip-add-icon": [
{ {
"type": 0, "type": 0,
@ -167,6 +173,12 @@
"value": "Estilo de conexión" "value": "Estilo de conexión"
} }
], ],
"editor-panel.tooltip-connection-style-arc": [
{
"type": 0,
"value": "Arco"
}
],
"editor-panel.tooltip-connection-style-curved-thick": [ "editor-panel.tooltip-connection-style-curved-thick": [
{ {
"type": 0, "type": 0,
@ -197,6 +209,12 @@
"value": "Borrar tópico" "value": "Borrar tópico"
} }
], ],
"editor-panel.tooltip-theme": [
{
"type": 0,
"value": "Tema"
}
],
"editor-panel.tooltip-topic-border-color": [ "editor-panel.tooltip-topic-border-color": [
{ {
"type": 0, "type": 0,
@ -275,6 +293,12 @@
"value": "Forma de linea" "value": "Forma de linea"
} }
], ],
"editor-panel.tooltip-topic-share-none": [
{
"type": 0,
"value": "Sin forma"
}
],
"editor-panel.tooltip-topic-share-rectangle": [ "editor-panel.tooltip-topic-share-rectangle": [
{ {
"type": 0, "type": 0,

View File

@ -119,6 +119,12 @@
"value": "Note" "value": "Note"
} }
], ],
"editor-panel.theme-title": [
{
"type": 0,
"value": "Thème"
}
],
"editor-panel.tooltip-add-icon": [ "editor-panel.tooltip-add-icon": [
{ {
"type": 0, "type": 0,
@ -167,6 +173,12 @@
"value": "Style de connexion" "value": "Style de connexion"
} }
], ],
"editor-panel.tooltip-connection-style-arc": [
{
"type": 0,
"value": "Arc"
}
],
"editor-panel.tooltip-connection-style-curved-thick": [ "editor-panel.tooltip-connection-style-curved-thick": [
{ {
"type": 0, "type": 0,
@ -197,6 +209,18 @@
"value": "Supprimer le sujet" "value": "Supprimer le sujet"
} }
], ],
"editor-panel.tooltip-delete-topic": [
{
"type": 0,
"value": "Supprimer un sujet"
}
],
"editor-panel.tooltip-theme": [
{
"type": 0,
"value": "Thème"
}
],
"editor-panel.tooltip-topic-border-color": [ "editor-panel.tooltip-topic-border-color": [
{ {
"type": 0, "type": 0,
@ -218,7 +242,7 @@
"editor-panel.tooltip-topic-fill-color-default": [ "editor-panel.tooltip-topic-fill-color-default": [
{ {
"type": 0, "type": 0,
"value": "Couleur de relleno por defecto" "value": "Couleur de remplissage par défaut"
} }
], ],
"editor-panel.tooltip-topic-font-bigger": [ "editor-panel.tooltip-topic-font-bigger": [
@ -281,12 +305,24 @@
"value": "Chiffre de ligne" "value": "Chiffre de ligne"
} }
], ],
"editor-panel.tooltip-topic-share-none": [
{
"type": 0,
"value": "Aucune forme"
}
],
"editor-panel.tooltip-topic-share-rectangle": [ "editor-panel.tooltip-topic-share-rectangle": [
{ {
"type": 0, "type": 0,
"value": "Forme rectangulaire" "value": "Forme rectangulaire"
} }
], ],
"editor-panel.tooltip-topic-share-rounded": [
{
"type": 0,
"value": "Forme ronde"
}
],
"editor-panel.tooltip-topic-style": [ "editor-panel.tooltip-topic-style": [
{ {
"type": 0, "type": 0,
@ -452,7 +488,7 @@
"shortcut-help-pane.overwrite-edit-topic": [ "shortcut-help-pane.overwrite-edit-topic": [
{ {
"type": 0, "type": 0,
"value": "Sobrescribir el texto del tópico" "value": "Remplacer le texte du sujet"
} }
], ],
"shortcut-help-pane.overwrite-edit-topic-key": [ "shortcut-help-pane.overwrite-edit-topic-key": [
@ -503,6 +539,12 @@
"value": "Raccourcis clavier" "value": "Raccourcis clavier"
} }
], ],
"zoom-panel.tooltip-keyboard": [
{
"type": 0,
"value": "Clavier"
}
],
"zoom-panel.tooltip-zoom-in": [ "zoom-panel.tooltip-zoom-in": [
{ {
"type": 0, "type": 0,

View File

@ -5,6 +5,84 @@
"value": "Поделиться" "value": "Поделиться"
} }
], ],
"editor-panel.theme-title": [
{
"type": 0,
"value": "Тема"
}
],
"editor-panel.tooltip-connection-color": [
{
"type": 0,
"value": "Цвет"
}
],
"editor-panel.tooltip-connection-color-default": [
{
"type": 0,
"value": "Цвет по умолчанию"
}
],
"editor-panel.tooltip-connection-style": [
{
"type": 0,
"value": "Стиль подключения"
}
],
"editor-panel.tooltip-connection-style-arc": [
{
"type": 0,
"value": "дуга"
}
],
"editor-panel.tooltip-connection-style-curved-thick": [
{
"type": 0,
"value": "широкая кривая"
}
],
"editor-panel.tooltip-connection-style-curved-thin": [
{
"type": 0,
"value": "тонкая кривая"
}
],
"editor-panel.tooltip-theme": [
{
"type": 0,
"value": "Тема"
}
],
"editor-panel.tooltip-topic-border-color-default": [
{
"type": 0,
"value": "Цвет границы по умолчанию"
}
],
"editor-panel.tooltip-topic-fill-color": [
{
"type": 0,
"value": "Цвет заливки"
}
],
"editor-panel.tooltip-topic-fill-color-default": [
{
"type": 0,
"value": "Цвет заливки по умолчанию"
}
],
"editor-panel.tooltip-topic-share-none": [
{
"type": 0,
"value": "нет формы"
}
],
"editor-panel.tooltip-topic-share-rounded": [
{
"type": 0,
"value": "Круглый"
}
],
"editor.edit-description-mobile": [ "editor.edit-description-mobile": [
{ {
"type": 0, "type": 0,
@ -46,5 +124,11 @@
"type": 0, "type": 0,
"value": "Регистрация" "value": "Регистрация"
} }
],
"zoom-panel.tooltip-keyboard": [
{
"type": 0,
"value": "Клавиатура"
}
] ]
} }

View File

@ -5,6 +5,84 @@
"value": "分享" "value": "分享"
} }
], ],
"editor-panel.theme-title": [
{
"type": 0,
"value": "主题"
}
],
"editor-panel.tooltip-connection-color": [
{
"type": 0,
"value": "颜色"
}
],
"editor-panel.tooltip-connection-color-default": [
{
"type": 0,
"value": "默认颜色"
}
],
"editor-panel.tooltip-connection-style": [
{
"type": 0,
"value": "连接方式"
}
],
"editor-panel.tooltip-connection-style-arc": [
{
"type": 0,
"value": "弧"
}
],
"editor-panel.tooltip-connection-style-curved-thick": [
{
"type": 0,
"value": "宽曲线"
}
],
"editor-panel.tooltip-connection-style-curved-thin": [
{
"type": 0,
"value": "细曲线"
}
],
"editor-panel.tooltip-theme": [
{
"type": 0,
"value": "主题"
}
],
"editor-panel.tooltip-topic-border-color-default": [
{
"type": 0,
"value": "默认边框颜色"
}
],
"editor-panel.tooltip-topic-fill-color": [
{
"type": 0,
"value": "填充颜​​色"
}
],
"editor-panel.tooltip-topic-fill-color-default": [
{
"type": 0,
"value": "默认填充颜色"
}
],
"editor-panel.tooltip-topic-share-none": [
{
"type": 0,
"value": "没有形状"
}
],
"editor-panel.tooltip-topic-share-rounded": [
{
"type": 0,
"value": "圆形"
}
],
"editor.edit-description-mobile": [ "editor.edit-description-mobile": [
{ {
"type": 0, "type": 0,
@ -46,5 +124,11 @@
"type": 0, "type": 0,
"value": "注册" "value": "注册"
} }
],
"zoom-panel.tooltip-keyboard": [
{
"type": 0,
"value": "键盘"
}
] ]
} }

View File

@ -11,15 +11,15 @@
], ],
"scripts": { "scripts": {
"build": "webpack --config webpack.prod.js", "build": "webpack --config webpack.prod.js",
"cy:open": "cypress open", "cy:open": "npx cypress open",
"cy:run": "cypress run", "cy:run": "npx cypress run",
"dev": "webpack --config webpack.dev.js", "dev": "webpack --config webpack.dev.js",
"i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'", "i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json", "i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"lint": "eslint src --ext js,ts,tsx", "lint": "eslint src --ext js,ts,tsx",
"start": "webpack serve --config webpack.dev.js ", "start": "webpack serve --config webpack.dev.js ",
"test": "yarn test:integration", "test": "yarn test:integration",
"test:integration": "start-server-and-test start http-get://localhost:3000 cy:run" "test:integration": "npx start-server-and-test start http-get://localhost:3000 cy:run"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.10.4", "@emotion/react": "^11.10.4",