fancybox-polish

3.5.7 • Public • Published

Fancybox in polish

This repository adds config to automatically translate fancybox into polish.

The script works with the newest version of fancybox 3. It is compatible with 3.2.x and above versions od Fancybx.

All you have to do to translate already installed fancybox into polish is to follow two simple steps.

1. Install this dependency

npm install fancybox-polish

or

yarn add fancybox-polish

2. Add script into your code

Remember to add translation after you load main fancybox library.

<script src="node_modules/fancybox-polish/fancybox.i18n.polish.js"></script>

What's inside

This file contains simple but full config to translate fancybox, which only provides English and German language for now.

$.fancybox.defaults.i18n.pl = {
    CLOSE       : 'Zamknij',
    NEXT        : 'Dalej',
    PREV        : 'Wstecz',
    ERROR       : 'Wystąpił błąd podczas ładowania zawartości.<br>Spróbuj ponownie.',
    PLAY_START  : 'Włącz pokaz slajdów',
    PLAY_STOP   : 'Zatrzymaj pokaz slajdów',
    FULL_SCREEN : 'Pełny ekran',
    THUMBS      : 'Miniatury',
    DOWNLOAD    : 'Pobierz',
    SHARE       : 'Udostępnij',
    ZOOM        : 'Przybliż'
};

$.fancybox.defaults.lang = 'pl';

License

MIT.

Package Sidebar

Install

npm i fancybox-polish

Weekly Downloads

8

Version

3.5.7

License

MIT

Unpacked Size

2.96 kB

Total Files

4

Last publish

Collaborators

  • qrzysio