kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.35k stars 2.4k forks source link

Finnish (fi) locale is forced in 5.5.3 #1857

Closed rjaros closed 3 months ago

rjaros commented 3 months ago

Prerequisites

Steps to reproduce the issue

  1. Use a few different language files, including fi.js.
  2. Initialize fileinput component using javascript with any other language option.

A jsbin link: https://jsbin.com/xucomehoga/edit?html,js,output

Expected behavior and actual behavior

Finnish translation is always used instead of the chosen one. Probably because the Finnish translation is the only one with this line at the end:

$.extend($.fn.fileinput.defaults, $.fn.fileinputLocales.fi);

Environment

Browsers

Operating System

Libraries

Isolating the problem

The problem can't be reproduced when initializing fileinput with data attributes.

rjaros commented 3 months ago

Hello and thanks for the fix. Do you plan to release 5.5.4 anytime soon?