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

Locales not working #122

Open
darkylmnx opened this issue Jun 19, 2020 · 4 comments
Open

Locales not working #122

darkylmnx opened this issue Jun 19, 2020 · 4 comments

Comments

@darkylmnx
Copy link

Version used: 1.7.2

I didn't see the french locale in the project so I added theme like this:

Vue.use(wysiwyg, {
  locale: {
    locale_name: 'Français',
    locale_shorthand: ['fr', 'français'],
    // Translations:
    justifyCenter: 'Centrer',
    justifyLeft: 'Aligner à gauche',
    justifyRight: 'Aligner à droite',
    bold: 'Gras',
    code: 'Code',
    headings: 'Titres (h1-h6)',
    link: 'Lien hypertexte',
    image: 'Image',
    italic: 'Italique',
    orderedList: 'Liste numérotée (1, 2, 3, ...)',
    unorderedList: 'Liste à puces',
    removeFormat: 'Supprimer la mise en forme.',
    separator: null,
    table: 'Insérer un tableau',
    underline: 'Souligner',
  },
});

This does not work though.
Actually, no locales work, I tried spanish and dutch too, nothing works.

Vue.use(wysiwyg, {
  hideModules: {
    image: true,
  },
  locale: 'es',
});

Also, I didn't see any local key for "rows", "columns" and "insert" for tables either.

@Yelteen
Copy link

Yelteen commented Aug 3, 2020

the npm version is not very up to date and and should not contain them, so i compiled it myself to use them

@elreco
Copy link

elreco commented Sep 2, 2020

I need the french translation too

@mcmiro
Copy link

mcmiro commented Oct 28, 2020

@Yelteen How did you compiled it exactly? Can you show us the code?

@Thor-x86
Copy link

I did fix Germany and Italian at #140

The only problem is forgot to register the locale into index.js, please be aware for this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants