Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

Support Multiple Languages #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -87,6 +110,9 @@
},
"production": {
"browserTarget": "evalai:build:production"
},
"production-es": {
"browserTarget": "evalai:build:production-es"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 11 additions & 11 deletions src/app/components/about/about.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<div class="about-container">
<div class="row">
<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12 about-content-column">
<h4 class="about-title">About Us</h4>
<p class="about-content">EvalAI is built by a team of open source enthusiasts working at
<a href="http://cloudcv.org" target="_blank" class="blue-text">CloudCV</a>. 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
<h4 i18n="@@aboutTitle" class="about-title">About Us</h4>
<p i18n="@@aboutContent1" class="about-content">EvalAI is built by a team of open source enthusiasts working at
<a href="http://cloudcv.org" target="_blank" class="blue-text">CloudCV</a>. 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.</p>
<p class="about-content">With EvalAI, we want to standardize the process of
<p i18n="@@aboutTitle2" class="about-content">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.</p>
</div>
<div class="col-lg-5 col-md-5 col-sm-1 col-xs-1">
Expand Down
47 changes: 47 additions & 0 deletions src/locale/messages.es.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="aboutTitle" datatype="html">
<source>About Us</source>
<target>Sobre nosotros</target>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
</trans-unit>
<trans-unit id="aboutContent1" datatype="html">
<source>EvalAI is built by a team of open source enthusiasts working at
<x id="START_LINK" ctype="x-a" equiv-text="&lt;a&gt;"/>CloudCV<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>. 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.</source>
<target>
EvalAI está construido por un equipo de entusiastas de código abierto que trabajan en <x id="START_LINK" ctype="x-a" equiv-text="&lt;a&gt;"/>CloudCV<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>.
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.</target>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">7</context>
</context-group>
</trans-unit>
<trans-unit id="aboutTitle2" datatype="html">
<source>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.</source>
<target>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.</target>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
40 changes: 40 additions & 0 deletions src/locale/messages.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="ng2.template">
<body>
<trans-unit id="aboutTitle" datatype="html">
<source>About Us</source>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">6</context>
</context-group>
</trans-unit>
<trans-unit id="aboutContent1" datatype="html">
<source>EvalAI is built by a team of open source enthusiasts working at
<x id="START_LINK" ctype="x-a" equiv-text="&lt;a&gt;"/>CloudCV<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>. 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.</source>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">7</context>
</context-group>
</trans-unit>
<trans-unit id="aboutTitle2" datatype="html">
<source>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.</source>
<context-group purpose="location">
<context context-type="sourcefile">app/components/about/about.component.html</context>
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>