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 2 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: Stopez le robot
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved

options:
restart: Redémarrer

messages:
exiting: On s'éteint…
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
restarting: On redémarre…
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
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: Autorité insuffisante.
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
insufficient-arguments: Arguments insuffisants, tapez "help" pour voir l'utilisation.
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
redunant-arguments: Arguments redondants, tapez "help" pour voir l'utilisation.
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
invalid-argument: Arguments {0} invalides, {1}
unknown-option: Option {0} inconnue, tapez "help" pour voir l'utilisation.
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
invalid-option: Option {0} invalide, {1}
check-syntax: Tapez "help" pour voir l'utilisation.
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
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 autorisations requises
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
showHidden: afficher les options et commandes cachées
messages:
hint-authority: cette autorité minimum est marquée dans les parenthèses
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
hint-subcommand: ces commandes avec un astérisque ont des sous-commandes
command-aliases: 'Alias: {0}.'
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
command-examples: 'Exemples :'
command-authority: 'Autorité minimum: {0}.'
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved
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 (parenthèses indiquent une autorité supplémentaire) :'
MaikoTan marked this conversation as resolved.
Show resolved Hide resolved