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 : français localisation expérimentale #644

Merged
merged 5 commits into from
Apr 29, 2022
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
11 changes: 11 additions & 0 deletions packages/cli/src/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
commands:
exit:
description: Arrêter le robot

options:
restart: Redémarrer

messages:
exiting: Arrêt en cours …
restarting: Redémarrage …
restarted: Redémarré.
1 change: 1 addition & 0 deletions packages/cli/src/worker/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function apply(ctx: Context, config: Config = {}) {

if (exitCommand) {
ctx.i18n.define('zh', require('../locales/zh'))
ctx.i18n.define('fr', require('../locales/fr'))

ctx
.command('exit', { authority: 4 })
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class I18n {
this.define('', { '': '' })
this.define('zh', require('./locales/zh'))
this.define('en', require('./locales/en'))
this.define('fr', require('./locales/fr'))
this.registerBuiltins()
}

Expand Down
53 changes: 53 additions & 0 deletions packages/core/src/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
general:
name: francais
paren: ' ({0}) '
quote: '"{0}"'
comma: ', '
and: et
or: ou
day: jour
hour: heure
minute: minute
second: seconde

internal:
low-authority: Droits insuffisants.
insufficient-arguments: Arguments insuffisants, tapez "help" pour afficher l'aide
redunant-arguments: Arguments redondants, tapez "help" pour afficher l'aide
invalid-argument: Arguments {0} invalides, {1}
unknown-option: Option {0} inconnue, tapez "help" pour afficher l'aide
invalid-option: Option {0} invalide, {1}
check-syntax: Tapez "help" pour afficher l'aide
invalid-number: Entrez un nombre.
invalid-integer: Entrez un entier.
invalid-posint: Entrez un entier positif.
invalid-natural: Entrez un entier non négatif.
invalid-date: Entrez une date valide.
invalid-user: Entrez un nom d'utilisateur valide.
invalid-channel: Entrez un nom de canal valide.

suggest:
hint: Voulez-vous dire {0} ?
command-prefix: ''
command-suffix: Tapez un point pour appliquer la suggestion.
help-prefix: Commande inconnue.
help-suffix: Tapez une ligne vide ou un point pour appliquer la suggestion.

commands:
help:
description: Afficher l'aide
options:
help: afficher cette aide
authority: afficher les droits nécessaires
showHidden: afficher les options et commandes cachées
messages:
hint-authority: les droits minimums sont indiqués entre parenthèses
hint-subcommand: ces commandes avec un astérisque ont des sous-commandes
command-aliases: 'Alias : {0}.'
command-examples: 'Exemples :'
command-authority: 'Droit minimum : {0}.'
subcommand-prolog: 'Commandes disponibles{0} :'
global-prolog: 'Commandes disponibles{0} :'
global-epilog: Tapez "help <commande>" pour voir la syntaxe et les exemples pour une commande spécifique.
available-options: 'Options disponibles :'
available-options-with-authority: 'Options disponibles (les parenthèses indiquent un droit supplémentaire) :'