Fix location resources.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-14 14:37:45 -03:00
parent fdfb67a5fe
commit fdbad76428
7 changed files with 45 additions and 20 deletions

View File

@ -8,8 +8,8 @@
"cy:run": "cypress run",
"test:integration": "start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy:run'",
"test": "yarn test:integration",
"extract": "for lang in {'es','en','fr','de'};do formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/${lang}.json;done",
"compile": "formatjs compile"
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/es.json",
"i18n:compile": "for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done"
},
"repository": "http://www.wisemapping.com",
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",

View File

@ -258,7 +258,7 @@
"defaultMessage": "Add label"
},
"label.add-for": {
"defaultMessage": "Editing labels for maps:"
"defaultMessage": "Editing labels for"
},
"label.add-placeholder": {
"defaultMessage": "Label title"
@ -275,6 +275,9 @@
"label.description": {
"defaultMessage": "Use labels to organize your maps."
},
"label.maps-count": {
"defaultMessage": "{count} maps"
},
"label.title": {
"defaultMessage": "Add a label"
},

View File

@ -1,5 +1,5 @@
{
"account.delete-warning": {
"account.delete-warning警告": {
"defaultMessage": "请记住,您将无法访问您添加的任何思维导图。您的所有信息都将被删除,并且无法恢复。"
},
"accountinfo.button": {
@ -249,7 +249,7 @@
"defaultMessage": "分享"
},
"info.starred": {
"defaultMessage": "星标"
"defaultMessage": "收藏"
},
"info.title": {
"defaultMessage": "信息"
@ -364,16 +364,16 @@
"defaultMessage": "所有"
},
"maps.nav-onwned": {
"defaultMessage": "拥有"
"defaultMessage": "我的"
},
"maps.nav-public": {
"defaultMessage": "公"
"defaultMessage": "公"
},
"maps.nav-shared": {
"defaultMessage": "与我分享"
},
"maps.nav-starred": {
"defaultMessage": "星标"
"defaultMessage": "收藏"
},
"maps.page-title": {
"defaultMessage": "我的脑图|WiseMapping"
@ -388,7 +388,7 @@
"defaultMessage": "打开编辑"
},
"maps.tooltip-starred": {
"defaultMessage": "星标"
"defaultMessage": "收藏"
},
"maps.view": {
"defaultMessage": "查看"

View File

@ -9,8 +9,8 @@
"lint": "eslint src",
"cy:run": "cypress run",
"test:integration": "start-server-and-test start http-get://localhost:3000 cy:run",
"extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"compile": "formatjs compile",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"i18n:compile": "for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done",
"test": "yarn test:integration"
},
"files": [

View File

@ -57,7 +57,7 @@ export const Locales = {
DE: new Locale('fr', 'Français', require('./../../compiled-lang/fr.json')), // eslint-disable-line
FR: new Locale('de', 'Deutsch', require('./../../compiled-lang/de.json')), // eslint-disable-line
RU: new Locale('ru', 'Pусский', require('./../../compiled-lang/ru.json')), // eslint-disable-line
ZH: new Locale('zh', '中文', require('./../../compiled-lang/zh.json')), // eslint-disable-line
ZH: new Locale('zh', '中文 (简体)', require('./../../compiled-lang/zh.json')), // eslint-disable-line
};

View File

@ -275,6 +275,12 @@
"value": "Image: Get a graphic representation of your map including all colors and shapes."
}
],
"export.img-center": [
{
"type": 0,
"value": "Center and zoom to fit"
}
],
"export.title": [
{
"type": 0,
@ -512,7 +518,7 @@
"label.add-for": [
{
"type": 0,
"value": "Editing labels for maps:"
"value": "Editing labels for"
}
],
"label.add-placeholder": [
@ -545,6 +551,16 @@
"value": "Use labels to organize your maps."
}
],
"label.maps-count": [
{
"type": 1,
"value": "count"
},
{
"type": 0,
"value": " maps"
}
],
"label.title": [
{
"type": 0,
@ -887,6 +903,12 @@
"value": "Last Name"
}
],
"registration.page-title": [
{
"type": 0,
"value": "Registration | WiseMapping"
}
],
"registration.password": [
{
"type": 0,
@ -914,7 +936,7 @@
"registration.title": [
{
"type": 0,
"value": "Registration | WiseMapping"
"value": "Become a member"
}
],
"rename.description": [

View File

@ -1,5 +1,5 @@
{
"account.delete-warning": [
"account.delete-warning警告": [
{
"type": 0,
"value": "请记住,您将无法访问您添加的任何思维导图。您的所有信息都将被删除,并且无法恢复。"
@ -500,7 +500,7 @@
"info.starred": [
{
"type": 0,
"value": "星标"
"value": "收藏"
}
],
"info.title": [
@ -740,13 +740,13 @@
"maps.nav-onwned": [
{
"type": 0,
"value": "拥有"
"value": "我的"
}
],
"maps.nav-public": [
{
"type": 0,
"value": "公"
"value": "公"
}
],
"maps.nav-shared": [
@ -758,7 +758,7 @@
"maps.nav-starred": [
{
"type": 0,
"value": "星标"
"value": "收藏"
}
],
"maps.page-title": [
@ -788,7 +788,7 @@
"maps.tooltip-starred": [
{
"type": 0,
"value": "星标"
"value": "收藏"
}
],
"maps.view": [