Added localization for export JSON files AB#16387 (#554)

* Added localization for export JSON files

* Added missing description field for asset state

* Updated display name properties on export providers
This commit is contained in:
Wallace Breza 2019-02-12 09:36:02 -08:00 коммит произвёл GitHub
Родитель 42bda7247d
Коммит 2887677701
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 242 добавлений и 58 удалений

Просмотреть файл

@ -165,10 +165,69 @@ export const english: IAppStrings = {
settings: "Export Settings",
saveSettings: "Save Export Settings",
providers: {
vottJson: "VoTT JSON",
azureCV: "Azure Custom Vision Service",
tfRecords: "Tensorflow Records",
tfPascalVoc: "Tensorflow Pascal VOC",
common: {
properties: {
assetState: {
title: "Asset State",
description: "Which assets to include in the export",
options: {
all: "All Assets",
visited: "Only Visited Assets",
tagged: "Only tagged Assets",
},
},
},
},
vottJson: {
displayName: "VoTT JSON",
},
azureCV: {
displayName: "Azure Custom Vision Service",
properties: {
apiKey: {
title: "API Key",
},
classificationType: {
title: "Classification Type",
options: {
multiLabel: "Multiple tags per image",
multiClass: "Single tag per image",
},
},
name: {
title: "Project Name",
},
description: {
title: "Project Description",
},
domainId: {
title: "Domain",
},
newOrExisting: {
title: "New or Existing Project",
options: {
new: "New Project",
existing: "Existing Project",
},
},
projectId: {
title: "Project Name",
},
projectType: {
title: "Project Type",
options: {
classification: "Classification",
objectDetection: "Object Detection",
},
},
},
},
tfRecords: {
displayName: "Tensorflow Records",
},
tfPascalVoc: {
displayName: "Tensorflow Pascal VOC",
},
},
messages: {
saveSuccess: "Successfully saved export settings",

Просмотреть файл

@ -166,10 +166,69 @@ export const spanish: IAppStrings = {
settings: "Configuración de Exportación",
saveSettings: "Guardar Configuración de Exportación",
providers: {
vottJson: "VoTT JSON",
azureCV: "Servicio de Visión Personalizada Azure",
tfRecords: "Registros de Tensorflow",
tfPascalVoc: "Tensorflow Pascal VOC",
common: {
properties: {
assetState: {
title: "Estado del activo",
description: "Qué activos incluir en la exportación",
options: {
all: "Todos los activos",
visited: "Solo activos visitados",
tagged: "Solo activos etiquetados",
},
},
},
},
vottJson: {
displayName: "VoTT JSON",
},
azureCV: {
displayName: "Servicio de Visión Personalizada Azure",
properties: {
apiKey: {
title: "Clave de API",
},
classificationType: {
title: "Tipo de clasificación",
options: {
multiLabel: "Varias etiquetas por imagen",
multiClass: "Una sola etiqueta por imagen",
},
},
name: {
title: "Nombre del proyecto",
},
description: {
title: "Descripción del proyecto",
},
domainId: {
title: "Dominio",
},
newOrExisting: {
title: "Proyecto nuevo o existente",
options: {
new: "Nuevo proyecto",
existing: "Proyecto existente",
},
},
projectId: {
title: "Nombre del proyecto",
},
projectType: {
title: "Tipo de proyecto",
options: {
classification: "Clasificación",
objectDetection: "Detección de objetos",
},
},
},
},
tfRecords: {
displayName: "Registros de Tensorflow",
},
tfPascalVoc: {
displayName: "Tensorflow Pascal VOC",
},
},
messages: {
saveSuccess: "Configuración de exportación guardada correctamente",

Просмотреть файл

@ -168,10 +168,69 @@ export interface IAppStrings {
settings: string;
saveSettings: string;
providers: {
vottJson: string;
azureCV: string;
tfRecords: string;
tfPascalVoc: string;
common: {
properties: {
assetState: {
title: string,
description: string,
options: {
all: string,
visited: string,
tagged: string,
},
},
},
},
vottJson: {
displayName: string,
},
azureCV: {
displayName: string,
properties: {
apiKey: {
title: string,
},
newOrExisting: {
title: string,
options: {
new: string,
existing: string,
},
},
name: {
title: string,
},
description: {
title: string,
},
projectType: {
title: string,
options: {
classification: string,
objectDetection: string,
},
},
classificationType: {
title: string,
options: {
multiLabel: string,
multiClass: string,
},
},
domainId: {
title: string,
},
projectId: {
title: string,
},
},
},
tfRecords: {
displayName: string,
},
tfPascalVoc: {
displayName: string,
},
},
messages: {
saveSuccess: string;

Просмотреть файл

@ -1,6 +1,6 @@
{
"type": "object",
"title": "Azure Custom Vision",
"title": "${strings.export.providers.azureCV.displayName}",
"required": [
"assetState",
"apiKey"
@ -8,8 +8,8 @@
"properties": {
"assetState": {
"type": "string",
"title": "Asset State",
"description": "Which assets to include in the export",
"title": "${strings.export.providers.common.properties.assetState.title}",
"description": "${strings.export.providers.common.properties.assetState.description}",
"enum": [
"all",
"visited",
@ -17,23 +17,27 @@
],
"default": "all",
"enumNames": [
"All Assets",
"Only Visisted Assets",
"Only Tagged Assets"
"${strings.export.providers.common.properties.assetState.options.all}",
"${strings.export.providers.common.properties.assetState.options.visited}",
"${strings.export.providers.common.properties.assetState.options.tagged}"
]
},
"apiKey": {
"type": "string",
"title": "API Key"
"title": "${strings.export.providers.azureCV.properties.apiKey.title}"
},
"newOrExisting": {
"type": "string",
"title": "New or existing project",
"title": "${strings.export.providers.azureCV.properties.newOrExisting.title}",
"enum": [
"New Project",
"Existing Project"
"new",
"existing"
],
"default": "Existing Project"
"enumNames": [
"${strings.export.providers.azureCV.properties.newOrExisting.options.new}",
"${strings.export.providers.azureCV.properties.newOrExisting.options.existing}"
],
"default": "existing"
}
},
"dependencies": {
@ -43,46 +47,46 @@
"properties": {
"newOrExisting": {
"enum": [
"New Project"
"new"
]
},
"name": {
"type": "string",
"title": "Project Name"
"title": "${strings.export.providers.azureCV.properties.name.title}"
},
"description": {
"type": "string",
"title": "Project Description"
"title": "${strings.export.providers.azureCV.properties.description.title}"
},
"projectType": {
"type": "string",
"title": "Project Type",
"title": "${strings.export.providers.azureCV.properties.projectType.title}",
"enum": [
"Classification",
"Object Detection"
],
"enumNames": [
"Classification",
"Object Detection"
"${strings.export.providers.azureCV.properties.projectType.options.classification}",
"${strings.export.providers.azureCV.properties.projectType.options.objectDetection}"
],
"default": "Classification"
},
"classificationType": {
"type": "string",
"title": "Classification Type",
"title": "${strings.export.providers.azureCV.properties.classificationType.title}",
"enum": [
"Multilabel",
"Multiclass"
],
"enumNames": [
"Multiple tags per image",
"Single tag per image"
"${strings.export.providers.azureCV.properties.classificationType.options.multiLabel}",
"${strings.export.providers.azureCV.properties.classificationType.options.multiClass}"
],
"default": "Multilabel"
},
"domainId": {
"type": "string",
"title": "Domain"
"title": "${strings.export.providers.azureCV.properties.domainId.title}"
}
},
"required": [
@ -94,12 +98,12 @@
"properties": {
"newOrExisting": {
"enum": [
"Existing Project"
"existing"
]
},
"projectId": {
"type": "string",
"title": "Project Name"
"title": "${strings.export.providers.azureCV.properties.projectId.title}"
}
},
"required": [

Просмотреть файл

@ -36,8 +36,8 @@ export interface ITagList {
}
export enum NewOrExisting {
New = "New Project",
Existing = "Existing Project",
New = "new",
Existing = "existing",
}
/**

Просмотреть файл

@ -1,10 +1,11 @@
{
"type": "object",
"title": "TensorFlow Pascal Voc Settings",
"title": "${strings.export.providers.tfPascalVoc.displayName}",
"properties": {
"assetState": {
"type": "string",
"title": "Asset State",
"title": "${strings.export.providers.common.properties.assetState.title}",
"description": "${strings.export.providers.common.properties.assetState.description}",
"enum": [
"all",
"visited",
@ -12,10 +13,10 @@
],
"default": "all",
"enumNames": [
"All Assets",
"Only Visisted Assets",
"Only Tagged Assets"
"${strings.export.providers.common.properties.assetState.options.all}",
"${strings.export.providers.common.properties.assetState.options.visited}",
"${strings.export.providers.common.properties.assetState.options.tagged}"
]
}
}
}
}

Просмотреть файл

@ -1,10 +1,11 @@
{
"type": "object",
"title": "TensorFlow Records Settings",
"title": "${strings.export.providers.tfRecords.displayName}",
"properties": {
"assetState": {
"type": "string",
"title": "Asset State",
"title": "${strings.export.providers.common.properties.assetState.title}",
"description": "${strings.export.providers.common.properties.assetState.description}",
"enum": [
"all",
"visited",
@ -12,9 +13,9 @@
],
"default": "all",
"enumNames": [
"All Assets",
"Only Visisted Assets",
"Only Tagged Assets"
"${strings.export.providers.common.properties.assetState.options.all}",
"${strings.export.providers.common.properties.assetState.options.visited}",
"${strings.export.providers.common.properties.assetState.options.tagged}"
]
}
}

Просмотреть файл

@ -1,10 +1,11 @@
{
"type": "object",
"title": "VoTT JSON Settings",
"title": "${strings.export.providers.vottJson.displayName}",
"properties": {
"assetState": {
"type": "string",
"title": "Asset State",
"title": "${strings.export.providers.common.properties.assetState.title}",
"description": "${strings.export.providers.common.properties.assetState.description}",
"enum": [
"all",
"visited",
@ -12,10 +13,10 @@
],
"default": "all",
"enumNames": [
"All Assets",
"Only Visisted Assets",
"Only Tagged Assets"
"${strings.export.providers.common.properties.assetState.options.all}",
"${strings.export.providers.common.properties.assetState.options.visited}",
"${strings.export.providers.common.properties.assetState.options.tagged}"
]
}
}
}
}

Просмотреть файл

@ -50,22 +50,22 @@ export default function registerProviders() {
// Export Providers
ExportProviderFactory.register({
name: "vottJson",
displayName: strings.export.providers.vottJson,
displayName: strings.export.providers.vottJson.displayName,
factory: (project, options) => new VottJsonExportProvider(project, options),
});
ExportProviderFactory.register({
name: "tensorFlowPascalVOC",
displayName: strings.export.providers.tfPascalVoc,
displayName: strings.export.providers.tfPascalVoc.displayName,
factory: (project, options) => new TFPascalVOCJsonExportProvider(project, options),
});
ExportProviderFactory.register({
name: "tensorFlowRecords",
displayName: strings.export.providers.tfRecords,
displayName: strings.export.providers.tfRecords.displayName,
factory: (project, options) => new TFRecordsJsonExportProvider(project, options),
});
ExportProviderFactory.register({
name: "azureCustomVision",
displayName: strings.export.providers.azureCV,
displayName: strings.export.providers.azureCV.displayName,
factory: (project, options) => new AzureCustomVisionProvider(project, options),
});