fix: versionCount was broken & other i18n improvements (#1450)
This commit is contained in:
@@ -51,6 +51,8 @@ const SortableMultiValueLabel = SortableHandle((props) => <components.MultiValue
|
||||
const SortableSelect = SortableContainer(Select) as React.ComponentClass<SelectProps<Value, true> & SortableContainerProps>;
|
||||
|
||||
const ReactSelect: React.FC<Props> = (props) => {
|
||||
const { t, i18n } = useTranslation();
|
||||
|
||||
const {
|
||||
className,
|
||||
showError = false,
|
||||
@@ -58,7 +60,7 @@ const ReactSelect: React.FC<Props> = (props) => {
|
||||
onChange,
|
||||
value,
|
||||
disabled = false,
|
||||
placeholder,
|
||||
placeholder = t('general:selectValue'),
|
||||
isSearchable = true,
|
||||
isClearable,
|
||||
isMulti,
|
||||
@@ -66,8 +68,6 @@ const ReactSelect: React.FC<Props> = (props) => {
|
||||
filterOption = undefined,
|
||||
} = props;
|
||||
|
||||
const { i18n } = useTranslation();
|
||||
|
||||
const classes = [
|
||||
className,
|
||||
'react-select',
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Props } from './types';
|
||||
|
||||
import './index.scss';
|
||||
|
||||
const baseClass = 'condition-value-text';
|
||||
|
||||
const Text: React.FC<Props> = ({ onChange, value }) => (
|
||||
<input
|
||||
placeholder="Enter a value"
|
||||
className={baseClass}
|
||||
type="text"
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
value={value || ''}
|
||||
/>
|
||||
);
|
||||
const Text: React.FC<Props> = ({ onChange, value }) => {
|
||||
const { t } = useTranslation('general');
|
||||
return (
|
||||
<input
|
||||
placeholder={t('enterAValue')}
|
||||
className={baseClass}
|
||||
type="text"
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
value={value || ''}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Text;
|
||||
|
||||
@@ -111,7 +111,7 @@ const Login: React.FC = () => {
|
||||
required
|
||||
/>
|
||||
<Link to={`${admin}/forgot`}>
|
||||
{t('forgotPassword')}
|
||||
{t('forgotPasswordQuestion')}
|
||||
</Link>
|
||||
<FormSubmit>{t('login')}</FormSubmit>
|
||||
</Form>
|
||||
|
||||
@@ -177,7 +177,7 @@ const Versions: React.FC<Props> = ({ collection, global }) => {
|
||||
<Eyebrow />
|
||||
<Gutter className={`${baseClass}__wrap`}>
|
||||
<header className={`${baseClass}__header`}>
|
||||
<div className={`${baseClass}__intro`}>Showing versions for:</div>
|
||||
<div className={`${baseClass}__intro`}>{t('showingVersionsFor')}</div>
|
||||
{useIDLabel && (
|
||||
<IDLabel id={doc?.id} />
|
||||
)}
|
||||
|
||||
@@ -271,6 +271,7 @@
|
||||
"saveDraft": "Save Draft",
|
||||
"selectLocales": "Select locales to display",
|
||||
"selectVersionToCompare": "Select a version to compare",
|
||||
"showingVersionsFor": "Showing versions for:",
|
||||
"showLocales": "Show locales:",
|
||||
"status": "Status",
|
||||
"type": "Type",
|
||||
@@ -280,6 +281,7 @@
|
||||
"versionCount_many": "{{count}} versions found",
|
||||
"versionCount_none": "No versions found",
|
||||
"versionCount_one": "{{count}} version found",
|
||||
"versionCount_other": "{{count}} versions found",
|
||||
"versionCreatedOn": "{{version}} created on:",
|
||||
"versionID": "Version ID",
|
||||
"versions": "Versions",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"account": "Account",
|
||||
"accountOfCurrentUser": "Account dell'utente corrente",
|
||||
"alreadyActivated": "Già Attivato",
|
||||
"alreadyLoggedIn": "Già loggato",
|
||||
"alreadyLoggedIn": "Sei già loggato",
|
||||
"apiKey": "Chiave API",
|
||||
"backToLogin": "Torna al login",
|
||||
"beginCreateFirstUser": "Per iniziare, crea il tuo primo utente.",
|
||||
@@ -18,7 +18,7 @@
|
||||
"enableAPIKey": "Abilita la Chiave API",
|
||||
"failedToUnlock": "Lo sblocco è fallito",
|
||||
"forceUnlock": "Forza Sblocco",
|
||||
"forgotPassword": "Password dimenticata",
|
||||
"forgotPassword": "Cambia Password",
|
||||
"forgotPasswordEmailInstructions": "Inserisci la tua mail qui sotto. Riceverai un messaggio email con le istruzioni su come cambiare la tua password.",
|
||||
"forgotPasswordQuestion": "Password dimenticata?",
|
||||
"generate": "Genera",
|
||||
@@ -60,6 +60,7 @@
|
||||
"accountAlreadyActivated": "Questo account è già stato attivato.",
|
||||
"autosaving": "Si è verificato un problema durante il salvataggio automatico di questo documento.",
|
||||
"correctInvalidFields": "Per favore correggi i campi non validi.",
|
||||
"deletingFile": "Si è verificato un errore durante l'eleminazione del file.",
|
||||
"deletingTitle": "Si è verificato un errore durante l'eliminazione di {{title}}. Per favore controlla la tua connessione e riprova.",
|
||||
"emailOrPasswordIncorrect": "L'email o la password fornita non è corretta.",
|
||||
"followingFieldsInvalid_many": "I seguenti campi non sono validi:",
|
||||
@@ -127,7 +128,7 @@
|
||||
"automatic": "Automatico",
|
||||
"backToDashboard": "Torna alla Dashboard",
|
||||
"cancel": "Cancella",
|
||||
"changesNotSaved": "Le tue modifiche non sono state salvate. Se esci ora, perderai le modifiche.",
|
||||
"changesNotSaved": "Le tue modifiche non sono state salvate. Se esci ora, verranno perse.",
|
||||
"collections": "Collezioni",
|
||||
"columnToSort": "Colonna da Ordinare",
|
||||
"columns": "Colonne",
|
||||
@@ -139,19 +140,19 @@
|
||||
"create": "Crea",
|
||||
"createNew": "Crea Nuovo",
|
||||
"createNewLabel": "Crea nuovo {{label}}",
|
||||
"created": "Data Creazione",
|
||||
"created": "Data di creazione",
|
||||
"createdAt": "Creato il",
|
||||
"creating": "Sto creando",
|
||||
"creating": "Crea nuovo",
|
||||
"dark": "Scuro",
|
||||
"dashboard": "Dashboard",
|
||||
"delete": "Elimina",
|
||||
"deletedSuccessfully": "Eliminato con successo.",
|
||||
"deleting": "Eliminando...",
|
||||
"deleting": "Sto eliminando...",
|
||||
"descending": "Decrescente",
|
||||
"duplicate": "Duplica",
|
||||
"duplicateWithoutSaving": "Duplica senza salvare le modifiche",
|
||||
"editLabel": "Modifica {{label}}",
|
||||
"editing": "Editando",
|
||||
"editing": "Modifica",
|
||||
"email": "Email",
|
||||
"emailAddress": "Indirizzo Email",
|
||||
"enterAValue": "Inserisci un valore",
|
||||
@@ -160,7 +161,7 @@
|
||||
"filters": "Filtri",
|
||||
"globals": "Globali",
|
||||
"language": "Lingua",
|
||||
"lastModified": "Ultima Modifica",
|
||||
"lastModified": "Ultima modifica",
|
||||
"leaveAnyway": "Esci comunque",
|
||||
"leaveWithoutSaving": "Esci senza salvare",
|
||||
"light": "Chiaro",
|
||||
@@ -171,24 +172,24 @@
|
||||
"newPassword": "Nuova Password",
|
||||
"noFiltersSet": "Nessun filtro impostato",
|
||||
"noLabel": "<No {{label}}>",
|
||||
"noResults": "Nessun {{label}} trovato. O non esiste ancora nessun {{label}} oppure nessuno corrisponde ai filtri che hai specificato sopra.",
|
||||
"noResults": "Nessun {{label}} trovato. Non esiste ancora nessun {{label}} oppure nessuno corrisponde ai filtri che hai specificato sopra.",
|
||||
"noValue": "Nessun valore",
|
||||
"none": "Nessuno",
|
||||
"notFound": "Non Trovato",
|
||||
"nothingFound": "Non è stato trovato nulla",
|
||||
"of": "di",
|
||||
"or": "O",
|
||||
"or": "Oppure",
|
||||
"order": "Ordine",
|
||||
"pageNotFound": "Pagina non trovata",
|
||||
"password": "Password",
|
||||
"payloadSettings": "Impostazioni Payload",
|
||||
"payloadSettings": "Impostazioni di Payload",
|
||||
"perPage": "Per Pagina: {{limit}}",
|
||||
"remove": "Rimuovi",
|
||||
"row": "Riga",
|
||||
"rows": "Righe",
|
||||
"save": "Salva",
|
||||
"saving": "Salvo...",
|
||||
"searchBy": "Cercato da",
|
||||
"searchBy": "Cerca per {{label}}",
|
||||
"selectValue": "Seleziona un valore",
|
||||
"sorryNotFound": "Siamo spiacenti, non c'è nulla che corrisponda alla tua richiesta.",
|
||||
"sort": "Ordina",
|
||||
@@ -204,8 +205,8 @@
|
||||
"untitled": "Senza titolo",
|
||||
"updatedAt": "Aggiornato il",
|
||||
"updatedSuccessfully": "Aggiornato con successo.",
|
||||
"user": "utente",
|
||||
"users": "utenti",
|
||||
"user": "Utente",
|
||||
"users": "Utenti",
|
||||
"welcome": "Benvenuto"
|
||||
},
|
||||
"upload": {
|
||||
@@ -263,13 +264,14 @@
|
||||
"publishChanges": "Pubblica modifiche",
|
||||
"published": "Pubblicato",
|
||||
"restoreThisVersion": "Ripristina questa versione",
|
||||
"restoredSuccessfully": "Restaurato successo.",
|
||||
"restoredSuccessfully": "Ripristinato con successo.",
|
||||
"restoring": "Ripristino...",
|
||||
"revertToPublished": "Ritorna alla versione pubblicata",
|
||||
"reverting": "Ritorno...",
|
||||
"saveDraft": "Salva Bozza",
|
||||
"selectLocales": "Seleziona le lingue da visualizzare",
|
||||
"selectVersionToCompare": "Seleziona una versione da confrontare",
|
||||
"showingVersionsFor": "Mostra le versioni per:",
|
||||
"showLocales": "Mostra localizzazioni:",
|
||||
"status": "Stato",
|
||||
"type": "Tipo",
|
||||
@@ -279,6 +281,7 @@
|
||||
"versionCount_many": "{{count}} versioni trovate",
|
||||
"versionCount_none": "Nessuna versione trovata",
|
||||
"versionCount_one": "{{count}} versione trovata",
|
||||
"versionCount_other": "{{count}} versioni trovate",
|
||||
"versionCreatedOn": "{{version}} creata il:",
|
||||
"versionID": "ID Versione",
|
||||
"versions": "Versioni",
|
||||
|
||||
@@ -1056,6 +1056,9 @@
|
||||
"selectVersionToCompare": {
|
||||
"type": "string"
|
||||
},
|
||||
"showingVersionsFor": {
|
||||
"type": "string"
|
||||
},
|
||||
"showLocales": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1077,6 +1080,9 @@
|
||||
"versionCount_many": {
|
||||
"type": "string"
|
||||
},
|
||||
"versionCount_other": {
|
||||
"type": "string"
|
||||
},
|
||||
"versionCount_none": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1136,6 +1142,7 @@
|
||||
"saveDraft",
|
||||
"selectLocales",
|
||||
"selectVersionToCompare",
|
||||
"showingVersionsFor",
|
||||
"showLocales",
|
||||
"status",
|
||||
"type",
|
||||
@@ -1143,6 +1150,7 @@
|
||||
"unpublishing",
|
||||
"version",
|
||||
"versionCount_many",
|
||||
"versionCount_other",
|
||||
"versionCount_none",
|
||||
"versionCount_one",
|
||||
"versionCreatedOn",
|
||||
|
||||
Reference in New Issue
Block a user