Skip to content

Commit

Permalink
merge: pull request #14765 from ovh/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
anooparveti authored Jan 9, 2025
2 parents 2a1099d + e7593e6 commit 22f18d6
Show file tree
Hide file tree
Showing 123 changed files with 487 additions and 246 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ export const Headers: React.FC<HeadersProps> = ({
<div className="flex items-center justify-between">
<div>
{title && <Title>{title}</Title>}
{subtitle && <Subtitle className="block">{subtitle}</Subtitle>}
{description && <OdsText preset="span">{description}</OdsText>}
{subtitle && <Subtitle className="block mb-6">{subtitle}</Subtitle>}
{description && (
<OdsText className="mb-[16px]" preset="span">
{description}
</OdsText>
)}
</div>
{headerButton && <div>{headerButton}</div>}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"pci_projects_project_users_matrix_show": "Rollenmatrix anzeigen",
"pci_projects_project_users_matrix_hide": "Rollenmatrix verbergen",
"pci_projects_project_users_generate_s3_credentials": "Object Storage Credentials generieren",
"pci_projects_project_users_generate_s3_credentials_success": "Die Object Storage-Anmeldeinformationen für den Benutzer {{user}} wurden neu generiert. Ihr Hauptschlüssel ist {{access}} und der geheime Schlüssel ist {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_success": "Die Object Storage Login-Daten für den User {{user}} wurden neu generiert. Ihr Zugangsschlüssel lautet {{access}}, der geheime Schlüssel lautet {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_error": "Beim Generieren der Login-Daten des Nutzers {{ user }} ist ein Fehler aufgetreten: {{ message }}.",
"pci_projects_project_users_createdAt_label": "Erstellungsdatum",
"pci_projects_project_users_show_key_label": "Zugriffsschlüssel anzeigen",
"pci_projects_project_users_show_cert_label": "Zertifikat anzeigen",
"pci_projects_project_users_show_user_informations_label": "Details anzeigen",
"pci_projects_project_users_high_perf_info": "Die Rollen des High Performance Object Storage Angebots sind in Ihrem Object Storage Angebot im Tab „Object Storage Benutzer“ festzulegen.",
"pci_projects_project_users_high_perf_info": "Die Rollen des High Performance Object Storage Angebots sind in Ihrem Object Storage Angebot im Tab „Object Storage User“ festzulegen.",
"common_confirm": "Bestätigen",
"common_cancel": "Abbrechen",
"common_pagination_of": "von",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"pci_projects_project_users_matrix_show": "Mostrar la matriz de los roles",
"pci_projects_project_users_matrix_hide": "Ocultar la matriz de los roles",
"pci_projects_project_users_generate_s3_credentials": "Generar las claves Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "Se han vuelto a generar las credenciales de Object Storage para el usuario {{user}}. Su clave de acceso es {{access}} y la clave secreta es {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_success": "Se han generado las claves de conexión Object Storage del usuario {{user}}. Su clave de acceso es {{access}} y su clave secreta es {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_error": "Se ha producido un error al generar las claves de conexión del usuario {{ user }}: {{ message }}.",
"pci_projects_project_users_createdAt_label": "Fecha de creación",
"pci_projects_project_users_show_key_label": "Mostrar la clave de acceso",
"pci_projects_project_users_show_cert_label": "Mostrar el certificado",
"pci_projects_project_users_show_user_informations_label": "Mostrar la información",
"pci_projects_project_users_high_perf_info": "Los roles del servicio High Performance Object Storage deben definirse en la pestaña «Usuarios de Object Storage» de su solución Object Storage.",
"pci_projects_project_users_high_perf_info": "Puede definir los roles del servicio High Performance Object Storage en la pestaña «Usuarios Object Storage» de su solución Object Storage.",
"common_confirm": "Confirmar",
"common_cancel": "Cancelar",
"common_pagination_of": "de",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"pci_projects_project_users_add_label": "Aggiungere un utente",
"pci_projects_project_users_matrix_show": "Mostra la matrice dei ruoli",
"pci_projects_project_users_matrix_hide": "Nascondi la matrice dei ruoli",
"pci_projects_project_users_generate_s3_credentials": "Genera le credenziali Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "Le credenziali dell'Object Storage per l'utente {{user}} sono state rigenerate. La chiave di accesso è {{access}} e la chiave segreta è {{secret}}.",
"pci_projects_project_users_generate_s3_credentials": "Generare le credenziali Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "Le credenziali Object Storage per l'utente {{user}} sono state rigenerate. La tua chiave di accesso è {{access}} e la chiave segreta è {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_error": "Si è verificato un errore durante la generazione delle informazioni di identificazione per l’utente {{ user }} : {{ message }}.",
"pci_projects_project_users_createdAt_label": "Data di creazione",
"pci_projects_project_users_show_key_label": "Mostra la chiave di accesso",
"pci_projects_project_users_show_cert_label": "Visualizza il certificato",
"pci_projects_project_users_show_user_informations_label": "Mostra le informazioni",
"pci_projects_project_users_high_perf_info": "I ruoli dell'offerta High Performance Object Storage devono essere definiti nella scheda \"Utenti Object Storage\" della soluzione.",
"pci_projects_project_users_high_perf_info": "I ruoli della soluzione High Performance Object Storage devono essere definiti nel servizio Object Storage, scheda \"Utenti Object Storage\".",
"common_confirm": "Confermare",
"common_cancel": "Annullare",
"common_pagination_of": "su",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"pci_projects_project_users_add_label": "Dodaj użytkownika",
"pci_projects_project_users_matrix_show": "Wyświetl macierz ról",
"pci_projects_project_users_matrix_hide": "Ukryj macierz ról",
"pci_projects_project_users_generate_s3_credentials": "Wygeneruj poświadczenia Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "Dane do logowania do Object Storage dla użytkownika {{user}} zostały wygenerowane ponownie. Twój klucz dostępu to {{access}}, a tajny klucz dostępu to {{secret}}.",
"pci_projects_project_users_generate_s3_credentials": "Wygeneruj dane identyfikacyjne Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "Dane identyfikacyjne Object Storage dla użytkownika {{user}} zostały wygenerowane ponownie. Twój klucz dostępu to {{access}}, a tajny klucz dostępu to {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_error": "Wystąpił błąd podczas generowania danych do logowania dla użytkownika {{user}} : {{message}}.",
"pci_projects_project_users_createdAt_label": "Data utworzenia",
"pci_projects_project_users_show_key_label": "Wyświetl klucz dostępu",
"pci_projects_project_users_show_cert_label": "Wyświetl certyfikat",
"pci_projects_project_users_show_user_informations_label": "Wyświetl informacje",
"pci_projects_project_users_high_perf_info": "Role w ramach High Performance Object Storage należy zdefiniować w rozwiązaniu Object Storage, w zakładce \"Użytkownicy Object Storage\".",
"pci_projects_project_users_high_perf_info": "Role w ramach High Performance Object Storage należy zdefiniować w rozwiązaniu Object Storage, w zakładce Użytkownicy Object Storage.",
"common_confirm": "Zatwierdź",
"common_cancel": "Anuluj",
"common_pagination_of": "z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"pci_projects_project_users_add_label": "Adicionar um utilizador",
"pci_projects_project_users_matrix_show": "Mostrar a matriz das funções",
"pci_projects_project_users_matrix_hide": "Ocultar a matriz das funções",
"pci_projects_project_users_generate_s3_credentials": "Gerar as credenciais ObjectStorage",
"pci_projects_project_users_generate_s3_credentials_success": "As informações de identificação do Object Storage para o utilizador {{user}} foram regeneradas. A sua chave de acesso é {{access}} e a chave secreta é {{secret}}.",
"pci_projects_project_users_generate_s3_credentials": "Gerar as credenciais Object Storage",
"pci_projects_project_users_generate_s3_credentials_success": "As informações de identificação Object Storage para o utilizador {{user}} foram regeneradas. A sua chave de acesso é {{access}} e a chave secreta é {{secret}}.",
"pci_projects_project_users_generate_s3_credentials_error": "Ocorreu um erro ao gerar as informações de identificação para o utilizador {{ user }}: {{ message }}.",
"pci_projects_project_users_createdAt_label": "Data de criação",
"pci_projects_project_users_show_key_label": "Mostrar a chave de acesso",
"pci_projects_project_users_show_cert_label": "Mostrar o certificado",
"pci_projects_project_users_show_user_informations_label": "Apresentar as informações",
"pci_projects_project_users_high_perf_info": "As funções da oferta High Performance Object Storage devem ser definidas na oferta Object Storage, separador \"Utilizadores Object Storage\".",
"pci_projects_project_users_high_perf_info": "As funções da oferta High Performance Object Storage devem ser definidas na oferta Object Storage, separador «Utilizadores Object Storage».",
"common_confirm": "Confirmar",
"common_cancel": "Anular",
"common_pagination_of": "em",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"zimbra_account_alias_add_btn_confirm": "Confermare",
"zimbra_account_alias_add_success_message": "La tua richiesta di creazione dell'alias è stata presa in carico. Sarà elaborata entro pochi minuti.",
"zimbra_account_alias_add_error_message": "Impossibile completare la richiesta di creazione dell'alias: {{ error }}",
"zimbra_account_alias_add_btn_cancel": "Annulla"
"zimbra_account_alias_add_btn_cancel": "Annullare"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"zimbra_organization_add_error_message": "La tua richiesta di aggiunta dell'organizzazione non è andata a buon fine: {{ error }}",
"zimbra_organization_edit_success_message": "La tua richiesta di modifica è stata presa in carico. Sarà eseguita entro pochi minuti.",
"zimbra_organization_edit_error_message": "La tua richiesta di modifica non è andata a buon fine: {{ error }}",
"zimbra_organization_add_cancel": "Annulla"
"zimbra_organization_add_cancel": "Annullare"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"zimbra_organization_delete_modal_message_disabled_part2": "Elimina i domini associati prima di eliminare la tua organizzazione.",
"zimbra_organization_delete_success_message": "La tua richiesta di eliminazione è stata presa in carico correttamente. Sarà eseguita entro pochi minuti.",
"zimbra_organization_delete_error_message": "La tua richiesta di eliminazione non è andata a buon fine. {{ error }}",
"zimbra_organization_delete_cancel": "Annulla"
"zimbra_organization_delete_cancel": "Annullare"
}
1 change: 1 addition & 0 deletions packages/manager/core/vite-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@vitejs/plugin-react": "^2.2.0",
"express": "^4.17.1",
"http-proxy-middleware": "^2.0.7",
"vite-plugin-static-copy": "^2.0.0",
"vite-plugin-svgr": "^3.2.0",
"yn": "^5.0.0"
}
Expand Down
26 changes: 26 additions & 0 deletions packages/manager/core/vite-config/src/commonTranslations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import path from 'path';
import { createRequire } from 'node:module';
import fs from 'node:fs';

export function getCommonTranslations() {
const require = createRequire(import.meta.url);
let packageJson;
try {
packageJson = JSON.parse(
fs.readFileSync(`${process.cwd()}/package.json`, 'utf8'),
);
} catch (e) {
packageJson = {};
}
const COMMON_TRANSLATIONS_PACKAGE = '@ovh-ux/manager-common-translations';
const viteStaticPluginTargets = [];
if (packageJson?.dependencies[COMMON_TRANSLATIONS_PACKAGE]) {
viteStaticPluginTargets.push({
src: `${path.dirname(
require.resolve(COMMON_TRANSLATIONS_PACKAGE),
)}/@ovh-ux`,
dest: `translations`,
});
}
return viteStaticPluginTargets;
}
6 changes: 5 additions & 1 deletion packages/manager/core/vite-config/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import react from '@vitejs/plugin-react';
import legacy from '@vitejs/plugin-legacy';
import svgr from 'vite-plugin-svgr';
import yn from 'yn';

import { viteStaticCopy } from 'vite-plugin-static-copy';
import IframeHmrPlugin from './plugin/iframe-hmr.js';
import viteOvhDevServerPlugin from './plugin/dev-server.js';
import { getCommonTranslations } from './commonTranslations.js';

const isContainerApp = process.cwd().endsWith('container');
const runInContainer = process.env.CONTAINER;
Expand Down Expand Up @@ -67,6 +68,9 @@ const getBaseConfig = (config) => {
viteOvhDevServerPlugin({ isContainerApp, envConfig }),
IframeHmrPlugin(),
svgr(),
viteStaticCopy({
targets: [...getCommonTranslations()],
}),
],
css: {
preprocessorOptions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"user_account_identity_documents_proof_tile_heading_vat": "Mehrwertsteuernachweis",
"user_account_identity_documents_proof_tile_heading_authority_declaration": "Eidesstattliche Erklärung",
"user_account_identity_documents_proof_tile_text_particular_identity": "Aadhaar-Karte, Personalausweis, Reisepass, Führerschein, Wählerkarte Indiens.",
"user_account_identity_documents_proof_tile_text_particular_address": "Aadhaar-Karte, GST-Zertifikat (Steuer auf Waren und Dienstleistungen), Rechnung (Strom, Gas, Wasser, Internet oder Telefon), Bankauszug.",
"user_account_identity_documents_proof_tile_text_particular_address": "Aadhaar-Karte, GST-Zertifikat (Steuer auf Produkte und Dienste), Rechnung (Strom, Gas, Wasser, Internet oder Telefon), Bankauszug.",
"user_account_identity_documents_proof_tile_text_non_individual_identity": "Aadhaar-Karte, Personalausweis, Reisepass, Führerschein, Wählerkarte Indiens.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "GST-Zertifikat (Steuer auf Waren und Dienstleistungen), Rechnung (Strom, Gas, Wasser, Internet oder Telefon), Bankauszug.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "GST-Zertifikat (Steuer auf Produkte und Dienste), Rechnung (Strom, Gas, Wasser, Internet oder Telefon), Bankauszug.",
"user_account_identity_documents_proof_tile_text_non_individual_vat": "GST-Zertifikat (Steuer auf Waren und Dienstleistungen).",
"user_account_identity_documents_proof_tile_text_non_individual_authority_declaration": "Dokument, das Ihnen die Berechtigung erteilt, im Namen des Unternehmens zu handeln.",
"user_account_identity_documents_proof_tile_extended_identity": "Dokument des gesetzlichen Vertreters, des Betriebsleiters oder eines anderen im GST-Zertifikat genannten Kontakts.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"user_account_identity_documents_proof_tile_heading_vat": "Prova di partita IVA",
"user_account_identity_documents_proof_tile_heading_authority_declaration": "Dichiarazione sull'onore",
"user_account_identity_documents_proof_tile_text_particular_identity": "Carta Aadhaar, carta di identità, passaporto, patente di guida, tessera elettorale indiana.",
"user_account_identity_documents_proof_tile_text_particular_address": "Carta Aadhaar, certificato GST (imposta su prodotti e servizi), fattura (elettricità, gas, acqua, internet o telefono), rendiconto bancario.",
"user_account_identity_documents_proof_tile_text_particular_address": "Carta Aadhaar, certificato GST (tassa su beni e servizi), bolletta di utenza (elettricità, gas, acqua, Internet o telefono), estratto conto bancario.",
"user_account_identity_documents_proof_tile_text_non_individual_identity": "Carta Aadhaar, carta di identità, passaporto, patente di guida, tessera elettorale indiana.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "Certificato GST (imposta su prodotti e servizi), fattura (elettricità, gas, acqua, internet o telefono), rendiconto bancario.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "Certificato GST (tassa su beni e servizi), bolletta di utenza (elettricità, gas, acqua, Internet o telefono), estratto conto bancario.",
"user_account_identity_documents_proof_tile_text_non_individual_vat": "Certificato GST (imposta su prodotti e servizi)",
"user_account_identity_documents_proof_tile_text_non_individual_authority_declaration": "Documento che ti autorizza ad agire a nome della società",
"user_account_identity_documents_proof_tile_extended_identity": "Documento del rappresentante legale, direttore operativo o altro contatto menzionato nel certificato GST.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"user_account_identity_documents_proof_tile_heading_vat": "Dokument potwierdzający status podatnika VAT",
"user_account_identity_documents_proof_tile_heading_authority_declaration": "Oświadczenie",
"user_account_identity_documents_proof_tile_text_particular_identity": "Karta Aadhaar, dowód osobisty, paszport, prawo jazdy, indyjska karta wyborcza.",
"user_account_identity_documents_proof_tile_text_particular_address": "Karta Aadhaar, certyfikat GST (podatek od towarów i usług), faktura (prąd, gaz, woda, internet lub telefon), wyciąg bankowy.",
"user_account_identity_documents_proof_tile_text_particular_address": "Karta Aadhaar, certyfikat GST (podatek od towarów i usług), faktura (za prąd, gaz, wodę, Internet lub telefon), wyciąg bankowy.",
"user_account_identity_documents_proof_tile_text_non_individual_identity": "Karta Aadhaar, dowód osobisty, paszport, prawo jazdy, indyjska karta wyborcza.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "Certyfikat GST (podatek od towarów i usług), faktura (elektryczność, gaz, woda, internet lub telefon), wyciąg bankowy.",
"user_account_identity_documents_proof_tile_text_non_individual_address": "Certyfikat GST (podatek od towarów i usług), faktura (za prąd, gaz, wodę, Internet lub telefon), wyciąg bankowy.",
"user_account_identity_documents_proof_tile_text_non_individual_vat": "Certyfikat GST (podatek od towarów i usług).",
"user_account_identity_documents_proof_tile_text_non_individual_authority_declaration": "Dokument uprawniający do reprezentowania firmy.",
"user_account_identity_documents_proof_tile_extended_identity": "Dokument potwierdzający tożsamość pełnomocnika, dyrektora operacyjnego lub innego kontaktu wymienionego w certyfikacie GST.",
Expand Down
Loading

0 comments on commit 22f18d6

Please sign in to comment.