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

Language is not loaded #1841

Open
ProjectLinde37 opened this issue Aug 1, 2023 · 1 comment
Open

Language is not loaded #1841

ProjectLinde37 opened this issue Aug 1, 2023 · 1 comment

Comments

@ProjectLinde37
Copy link

Problem still not seems solved in latest version

Loaded following files :
`<script type='text/javascript' src='assets/bootstrap-fileinput/5.5.3/js/plugins/buffer.min.js' ></script>

<script type='text/javascript' src='assets/bootstrap-fileinput/5.5.3/js/plugins/filetype.min.js' ></script> <script type='text/javascript' src='assets/bootstrap-fileinput/5.5.3/js/fileinput.min.js' ></script> <script type='text/javascript' src='assets/bootstrap-fileinput/5.5.3/themes/bs5/theme.min.js'></script> <script type='text/javascript' src='assets/bootstrap-fileinput/5.5.3/js/locales/nl.js></script>`

And have the input configured
$(document).ready(function() { $('#DOCUMENT').fileinput({ language:'nl', 'showUpload': false, 'previewFileType': 'any', // custom button icons }); });

@kartik-v kartik-v changed the title Langauge is not loaded Language is not loaded Aug 2, 2023
@TeoMastro
Copy link

In my case, the way our company project is constructed we store the language and locale in Yii::$app->language (ex. 'el-GR' for greek). On Datepicker plugin the language value was automatically taken from the Yii::$app->language variable, but on the bootstrap-fileinput plugin I had to set the language by adding the property: 'language' => substr(Yii::$app->language, 0, 2) on the fileinput plugin properties so only the 'el' part was cosnidered as 'language' by the plugin. I hope this helps you identify and solve your problem.

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