Skip to content

Commit

Permalink
i18n : support for catalog name & description (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com>
Co-authored-by: Olivier Levitt <olivier.levitt@gmail.com>
  • Loading branch information
3 people committed Jun 19, 2024
1 parent 4e7aaf0 commit 78bb38b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class CatalogWrapper {
@Schema(description = "Catalog id")
private String id;

@Schema(description = "Catalog name")
private String name;
@Schema(description = "Localized string for the name of the catalog")
private Object name;

@Schema(description = "Description of the catalog")
private String description;
@Schema(description = "Localized string for the description of the catalog")
private Object description;

@Schema(description = "Who maintains the catalog")
private String maintainer;
Expand Down Expand Up @@ -127,11 +127,11 @@ public void setId(String id) {
this.id = id;
}

public String getName() {
public Object getName() {
return name;
}

public void setName(String name) {
public void setName(Object name) {
this.name = name;
}

Expand All @@ -143,11 +143,11 @@ public void setLocation(String location) {
this.location = location;
}

public String getDescription() {
public Object getDescription() {
return description;
}

public void setDescription(String description) {
public void setDescription(Object description) {
this.description = description;
}

Expand Down
35 changes: 30 additions & 5 deletions onyxia-api/src/main/resources/catalogs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
"catalogs": [
{
"id": "ide",
"name": "IDE",
"description": "Services for datascientists.",
"name": {
"en": "Development environments",
"fr": "Environnements de développement",
"de": "Entwicklungsumgebungen",
"fi": "Kehitysympäristöt",
"it": "Ambienti di sviluppo",
"nl": "Ontwikkelingsomgevingen",
"no": "Utviklingsmiljøer",
"zh-CN": "开发环境"
},
"maintainer": "innovation@insee.fr",
"location": "https://inseefrlab.github.io/helm-charts-interactive-services",
"status": "PROD",
Expand All @@ -20,7 +28,16 @@
},
{
"id": "databases",
"name": "Databases",
"name": {
"en": "Databases",
"fr": "Bases de données",
"de": "Datenbanken",
"fi": "Tietokannat",
"it": "Database",
"nl": "Databases",
"no": "Databaser",
"zh-CN": "数据库"
},
"description": "Databases for datascientists.",
"maintainer": "innovation@insee.fr",
"location": "https://inseefrlab.github.io/helm-charts-databases",
Expand All @@ -38,8 +55,16 @@
},
{
"id": "automation",
"name": "Automation",
"description": "Automation for datascientists.",
"name": {
"en": "Automation",
"fr": "Automatisation",
"de": "Automatisierung",
"fi": "Automaatio",
"it": "Automazione",
"nl": "Automatisering",
"no": "Automatisering",
"zh-CN": "自动化"
},
"maintainer": "innovation@insee.fr",
"location": "https://inseefrlab.github.io/helm-charts-automation",
"status": "PROD",
Expand Down

0 comments on commit 78bb38b

Please sign in to comment.