1.0.10 • Published 3 years ago

@filerobot/locales v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@filerobot/locales

This package contains all the locales/languages possible to show Filerobot widget with.

Usage

From NPM

The plugin is on NPM as @filerobot/explorer

npm install --save @filerobot/core @filerobot/locales

then

import Filerobot from '@filerobot/core';
import { FR as franceFrench } from '@filerobot/locales';
...
...
...
const filerobot = Filerobot({
  locale: franceFrench
})

From CDN

The plugin from CDN is found inside Filerobot global object Filerobot.locales

const locales = window.Filerobot.locales
...
...
...
const filerobot = Filerobot({
  locale: locales.FR
})

Check locale property of core for more details.

locale/translation file naming convention (EN), EN = shortcut for language in big letters casing.

Available locales

  • United states' English: EN compiled inside /lib/EN.js

  • France's Français: FR compiled inside /lib/FR.js

For adding more translations/locales:

  1. Copy (EN.js) file as it is almost contains the latest translation keys into same folder and rename the file with your translation naming convetnion ex. (FR).
  2. Replace EN object with your the naming conveion of the file ex. (FR).
  3. Replace the translated strings with desired language's translated strings.
  4. Add export { default as FR } from './FR' inside @filerobot/locales/src/index.js.
  5. Compile for being added in lib.

Note: locales available in the package till now (English, Deutch, Espanish, French).

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

0.0.0-beta.0

3 years ago