fantom-vue-components
Fantom Vue Components
Library of various Vue 2 components with focus on accessibility.
Installation
npm install
Demo with docs
npm run storybook
Playground
npm run serve
Localization
Localization files can be found in src/locales
directory.
If you want to add your own translations or overwrite existing one, do something like:
import { translations } from 'src/mixins/translations.js';
import { myTranlsations } from 'mytranslations.js';
// add new translations (follow structure of translation object from files in the `src/locales` directory)
translations.add('cs', myTranslations);
If you want to change locale, do something like:
import { translations } from 'src/mixins/translations.js';
// change locale (default is 'en')
translations.setLocale('cs');
Dependencies
Dependencies
@babel/core: ^7.12.10@babel/preset-env: ^7.12.11@commitlint/cli: ^11.0.0@commitlint/config-conventional: ^11.0.0@open-wc/testing: ^2.5.33@open-wc/testing-helpers: ^1.8.12@rollup/plugin-alias: ^3.1.1@rollup/plugin-babel: ^5.2.2@rollup/plugin-commonjs: ^17.0.0@rollup/plugin-replace: ^2.3.4@storybook/addon-a11y: ^6.3.4@storybook/addon-actions: ^6.3.4@storybook/addon-docs: ^6.3.4@storybook/addon-knobs: ^6.3.0@storybook/addon-links: ^6.3.4@storybook/addon-storysource: ^6.3.6@storybook/addon-viewport: ^6.3.6@storybook/addons: ^6.3.4@storybook/storybook-deployer: ^2.8.10@storybook/vue: ^6.3.4@vue/cli-plugin-babel: ~4.5.0@vue/cli-plugin-eslint: ~4.5.0@vue/cli-plugin-unit-jest: ~4.5.0@vue/cli-plugin-unit-mocha: ~4.5.0@vue/cli-service: ~4.5.0@vue/eslint-config-prettier: ^6.0.0@vue/test-utils: ^1.2.1@web/test-runner: ^0.13.12@web/test-runner-commands: ^0.5.5babel-eslint: ^10.1.0chai: ^4.1.2cross-env: ^7.0.3eslint: ^6.7.2eslint-plugin-prettier: ^3.1.3eslint-plugin-vue: ^6.2.2husky: ^4.3.6lint-staged: ^10.5.3minimist: ^1.2.5prettier: ^1.19.1rollup: ^2.36.1rollup-plugin-terser: ^7.0.2rollup-plugin-vue: ^5.1.9sass: ^1.35.2sass-loader: ^10.0.2sinon: ^11.1.1standard-version: ^9.1.0storybook-rtl-addon: ^0.3.2vue: ^2.6.14vue-template-compiler: ^2.6.14