Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,18 +44,18 @@ export class Entity { | |
if (!this.domManager) return null; | ||
const query = this.domManager.getQuery(); | ||
if (this.state === "error") { | ||
return "Error! Check the browser console."; | ||
return "Erreur! Vérifier dans la console..."; | ||
} else if (this.state != "ready") { | ||
return "Loading..."; | ||
return "Chargement..."; | ||
} else if (query?.length < this.config.minimumQueryLength) { | ||
return "Filtering..."; | ||
return "Recherche en cours..."; | ||
} else if (this.results) { | ||
if (this.totalResultCount === 0) { | ||
return `No ${this.config.resultNoun.plural} found.`; | ||
return `Pas d'${this.config.resultNoun.plural} trouvés.`; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gentooboontoo
Member
|
||
} else if (this.totalResultCount === 1) { | ||
return `1 ${this.config.resultNoun.singular} found.`; | ||
return `1 ${this.config.resultNoun.singular} trouvé.`; | ||
} else { | ||
return `${this.totalResultCount} ${this.config.resultNoun.plural} found.`; | ||
return `${this.totalResultCount} ${this.config.resultNoun.plural} trouvés.`; | ||
} | ||
} | ||
|
||
|
@ibtihalaa @gentooboontoo NB : En français comme en anglais, ce cas devrait toujours être au singulier.
=> No file found
=> Pas d'article trouvé (aucun)
Pourrait faire l'objet d'une issue sur le repo stork.
On pourrait également en faire une pour demander un système de traduction de ces messages, pour pouvoir un jour éviter de rebuilder ?