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

Caption in multiple languages #36

Closed
tornako opened this issue Apr 16, 2019 · 3 comments
Closed

Caption in multiple languages #36

tornako opened this issue Apr 16, 2019 · 3 comments

Comments

@tornako
Copy link

tornako commented Apr 16, 2019

Hi, is possible to have the caption for multilanguages? How I put different languages in the same captions? Ex. Catalan, Spanish and English.

(I write a new post because the other is already closed, and so it is visible.)

Thanks!!

@innostudio
Copy link
Owner

@tornako there is no way to have in the captions object different languages at the same time.

@innostudio
Copy link
Owner

The simplest way is following

HTML:

<script type="text/javascript">
    window.appLanguage = 'en';
</script>

Custom.js:

// declare translations
var fileuploaderTranslations = {
    en: {
        button: 'Browse files'
    },
    es: {
        button: 'Examinar...'
    }
};

// init fileuploader
$('input:file').fileuploader({
    captions: fileuploaderTranslations[window.appLanguage]
});

@innostudio
Copy link
Owner

@tornako the plugin is now translated in 14 languages. Check it here https://innostudio.de/fileuploader/documentation/#options-captions

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

2 participants