Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n : support for catalog name & description #423

Merged
merged 4 commits into from
Jun 19, 2024
Merged
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
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": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"location": "https://inseefrlab.github.io/helm-charts-automation",
"status": "PROD",
Expand Down