Commit 86b4a5d
committed
Added
This should allow those using their own build systems to
automatically load in translations. In the future, the `amdBase`
option may be used to optionally load some components of Select2.
As Select2 cannot know what the base directory is, it currently
has to load in all of the optional components in the default build.
By allowing users to set their own base, it will allow us to know
the base to load files from, which makes it easier to use the
`require` function to optionally load them.
This fixes select2#2899.amdBase and amdLanguageBase options1 parent 584d3b4 commit 86b4a5d
8 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | | - | |
| 3573 | + | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
| |||
3641 | 3641 | | |
3642 | 3642 | | |
3643 | 3643 | | |
| 3644 | + | |
| 3645 | + | |
3644 | 3646 | | |
3645 | 3647 | | |
3646 | 3648 | | |
| |||
4538 | 4540 | | |
4539 | 4541 | | |
4540 | 4542 | | |
4541 | | - | |
| 4543 | + | |
4542 | 4544 | | |
4543 | 4545 | | |
4544 | 4546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | | - | |
| 3573 | + | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
| |||
3641 | 3641 | | |
3642 | 3642 | | |
3643 | 3643 | | |
| 3644 | + | |
| 3645 | + | |
3644 | 3646 | | |
3645 | 3647 | | |
3646 | 3648 | | |
| |||
4254 | 4256 | | |
4255 | 4257 | | |
4256 | 4258 | | |
4257 | | - | |
| 4259 | + | |
4258 | 4260 | | |
4259 | 4261 | | |
4260 | 4262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13105 | 13105 | | |
13106 | 13106 | | |
13107 | 13107 | | |
13108 | | - | |
| 13108 | + | |
13109 | 13109 | | |
13110 | 13110 | | |
13111 | 13111 | | |
| |||
13176 | 13176 | | |
13177 | 13177 | | |
13178 | 13178 | | |
| 13179 | + | |
| 13180 | + | |
13179 | 13181 | | |
13180 | 13182 | | |
13181 | 13183 | | |
| |||
14073 | 14075 | | |
14074 | 14076 | | |
14075 | 14077 | | |
14076 | | - | |
| 14078 | + | |
14077 | 14079 | | |
14078 | 14080 | | |
14079 | 14081 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3998 | 3998 | | |
3999 | 3999 | | |
4000 | 4000 | | |
4001 | | - | |
| 4001 | + | |
4002 | 4002 | | |
4003 | 4003 | | |
4004 | 4004 | | |
| |||
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
| 4072 | + | |
| 4073 | + | |
4072 | 4074 | | |
4073 | 4075 | | |
4074 | 4076 | | |
| |||
4682 | 4684 | | |
4683 | 4685 | | |
4684 | 4686 | | |
4685 | | - | |
| 4687 | + | |
4686 | 4688 | | |
4687 | 4689 | | |
4688 | 4690 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| |||
0 commit comments