@filerobot/locales
v1.0.10
Published
Filerobot language packs
Keywords
Readme
@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/localesthen
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:
ENcompiled inside/lib/EN.jsFrance's Français:
FRcompiled inside/lib/FR.js
For adding more translations/locales:
- 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). - Replace
ENobject with your the naming conveion of the file ex. (FR). - Replace the translated strings with desired language's translated strings.
- Add
export { default as FR } from './FR'inside@filerobot/locales/src/index.js. - Compile for being added in lib.
Note: locales available in the package till now (English, Deutch, Espanish, French).
