From 1379125fb16c68c2ce138ea81aeefa623316b7dd Mon Sep 17 00:00:00 2001 From: Pushkal Katara Date: Thu, 12 Dec 2019 04:30:40 +0530 Subject: [PATCH] internalization update --- angular.json | 28 ++++++++++- package.json | 1 + src/app/components/about/about.component.html | 22 ++++----- src/locale/messages.es.xlf | 47 +++++++++++++++++++ src/locale/messages.xlf | 40 ++++++++++++++++ 5 files changed, 126 insertions(+), 12 deletions(-) create mode 100644 src/locale/messages.es.xlf create mode 100644 src/locale/messages.xlf diff --git a/angular.json b/angular.json index 01c1cd3d9..00a2a435a 100644 --- a/angular.json +++ b/angular.json @@ -73,7 +73,30 @@ "with": "src/environments/environment.prod.ts" } ] - } + }, + "production-es": { + "optimization": true, + "outputHashing": "all", + "outputPath": "dist/browser/es/", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "baseHref": "/es/", + "i18nFile": "src/locale/messages.es.xlf", + "i18nFormat": "xlf", + "i18nLocale": "es", + "i18nMissingTranslation": "error" + } } }, "serve": { @@ -87,6 +110,9 @@ }, "production": { "browserTarget": "evalai:build:production" + }, + "production-es": { + "browserTarget": "evalai:build:production-es" } } }, diff --git a/package.json b/package.json index 1312a1287..95ec2d051 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", + "node-sass": "^4.13.0", "pre-commit": "^1.2.2", "protractor": "~5.1.2", "ts-node": "~4.1.0", diff --git a/src/app/components/about/about.component.html b/src/app/components/about/about.component.html index 3358ccb93..d806b467d 100644 --- a/src/app/components/about/about.component.html +++ b/src/app/components/about/about.component.html @@ -3,20 +3,20 @@
-

About Us

-

EvalAI is built by a team of open source enthusiasts working at - CloudCV. CloudCV aims to make AI research - reproducible and easily accessible. We want to reduce the barrier to entry for doing research - and make it easier for researchers, students and developers to develop and use state-of-the-art +

About Us

+

EvalAI is built by a team of open source enthusiasts working at + CloudCV. CloudCV aims to make AI research + reproducible and easily accessible. We want to reduce the barrier to entry for doing research + and make it easier for researchers, students and developers to develop and use state-of-the-art algorithms as a service.

-

With EvalAI, we want to standardize the process of +

With EvalAI, we want to standardize the process of evaluating different methods on a dataset and make it simple to host a competition. - Comparing a new method with other existing approaches is an essential component of - research and this process has traditionally been affected by difference in evaluation + Comparing a new method with other existing approaches is an essential component of + research and this process has traditionally been affected by difference in evaluation metric implementation, different splits of the dataset or minor modifications in the - algorithm. This makes it extremely hard to reproduce numbers from published papers - and reliably compare your method with other existing approaches. By building EvalAI, we - hope to make this easier by standardizing the dataset splits, evaluation metrics and by + algorithm. This makes it extremely hard to reproduce numbers from published papers + and reliably compare your method with other existing approaches. By building EvalAI, we + hope to make this easier by standardizing the dataset splits, evaluation metrics and by maintaining a public leaderboard of hosted challenges.

diff --git a/src/locale/messages.es.xlf b/src/locale/messages.es.xlf new file mode 100644 index 000000000..08a4a5e7c --- /dev/null +++ b/src/locale/messages.es.xlf @@ -0,0 +1,47 @@ + + + + + + About Us + Sobre nosotros + + app/components/about/about.component.html + 6 + + + + EvalAI is built by a team of open source enthusiasts working at + CloudCV. CloudCV aims to make AI research + reproducible and easily accessible. We want to reduce the barrier to entry for doing research + and make it easier for researchers, students and developers to develop and use state-of-the-art + algorithms as a service. + +EvalAI está construido por un equipo de entusiastas de código abierto que trabajan en CloudCV. +CloudCV tiene como objetivo hacer que la investigación de IA sea reproducible y fácilmente accesible. Queremos reducir la barrera de entrada para realizar investigaciones y facilitar que los investigadores, estudiantes y desarrolladores desarrollen y utilicen algoritmos de última generación como servicio. + + app/components/about/about.component.html + 7 + + + + With EvalAI, we want to standardize the process of + evaluating different methods on a dataset and make it simple to host a competition. + Comparing a new method with other existing approaches is an essential component of + research and this process has traditionally been affected by difference in evaluation + metric implementation, different splits of the dataset or minor modifications in the + algorithm. This makes it extremely hard to reproduce numbers from published papers + and reliably compare your method with other existing approaches. By building EvalAI, we + hope to make this easier by standardizing the dataset splits, evaluation metrics and by + maintaining a public leaderboard of hosted challenges. + Con EvalAI, queremos estandarizar el proceso de evaluación de diferentes métodos en un conjunto de datos y simplificar la organización de una competencia. +La comparación de un nuevo método con otros enfoques existentes es un componente esencial de la investigación y este proceso tradicionalmente se ha visto afectado por la diferencia en la implementación de la métrica de evaluación, diferentes divisiones del conjunto de datos o modificaciones menores en el algoritmo. Esto hace que sea extremadamente difícil reproducir números de artículos publicados +y compare de manera confiable su método con otros enfoques existentes. Al crear EvalAI, esperamos facilitar esto al estandarizar las divisiones de conjuntos de datos, las métricas de evaluación y al mantener una tabla de clasificación pública de desafíos alojados. + + app/components/about/about.component.html + 12 + + + + + diff --git a/src/locale/messages.xlf b/src/locale/messages.xlf new file mode 100644 index 000000000..38509fc1f --- /dev/null +++ b/src/locale/messages.xlf @@ -0,0 +1,40 @@ + + + + + + About Us + + app/components/about/about.component.html + 6 + + + + EvalAI is built by a team of open source enthusiasts working at + CloudCV. CloudCV aims to make AI research + reproducible and easily accessible. We want to reduce the barrier to entry for doing research + and make it easier for researchers, students and developers to develop and use state-of-the-art + algorithms as a service. + + app/components/about/about.component.html + 7 + + + + With EvalAI, we want to standardize the process of + evaluating different methods on a dataset and make it simple to host a competition. + Comparing a new method with other existing approaches is an essential component of + research and this process has traditionally been affected by difference in evaluation + metric implementation, different splits of the dataset or minor modifications in the + algorithm. This makes it extremely hard to reproduce numbers from published papers + and reliably compare your method with other existing approaches. By building EvalAI, we + hope to make this easier by standardizing the dataset splits, evaluation metrics and by + maintaining a public leaderboard of hosted challenges. + + app/components/about/about.component.html + 12 + + + + +