Skip to content

Commit

Permalink
feat: add Swedish language (#4652)
Browse files Browse the repository at this point in the history
* feat: add Swedish language

* fix

* update

* chore(assets): Update assets

Co-authored-by: MonicaBot <monicabot@asbin.net>
  • Loading branch information
asbiin and MonicaBot authored Dec 5, 2020
1 parent 1c42169 commit e1edcad
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
6 changes: 1 addition & 5 deletions config/lang-detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@
env('LANG_DETECTOR_LANGUAGES', [
'en',
'ar',
'cs',
'de',
'en-GB' => 'en-GB',
'es',
'fr',
'he',
'hr',
'it',
'nl',
'pt',
'pt-BR' => 'pt-BR',
'ru',
'sv',
'tr',
'zh',
'zh-TW' => 'zh-TW',
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/langs/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/vendor.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"/js/manifest.js": "/js/manifest.js?id=7db827d654313dce4250",
"/js/vendor.js": "/js/vendor.js?id=b1a0a70356f3cebc09c9",
"/js/app.js": "/js/app.js?id=014d0db3860e55d28bd8",
"/js/vendor.js": "/js/vendor.js?id=1ab0f2f06fcb6bb0e1f4",
"/js/app.js": "/js/app.js?id=c43ad50e8faa0d8094d4",
"/css/app-ltr.css": "/css/app-ltr.css?id=94a406592b3c938b6c66",
"/css/app-rtl.css": "/css/app-rtl.css?id=b9e7e1b64d79c5a5842a",
"/css/stripe.css": "/css/stripe.css?id=746c8aaac01c56d3cee1",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
'locale_pt' => 'Portuguese',
'locale_pt-BR' => 'Portuguese (Brazil)',
'locale_ru' => 'Russian',
'locale_sv' => 'Swedish',
'locale_zh' => 'Chinese Simplified',
'locale_zh-TW' => 'Chinese Traditional',
'locale_tr' => 'Turkish',
Expand Down
16 changes: 15 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@ const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
mix.webpackConfig({
plugins: [
new MomentLocalesPlugin({
localesToKeep: ['en', 'ar', 'cs', 'de', 'en-GB', 'es', 'fr', 'he', 'hr', 'it', 'nl', 'pt', 'pt-BR', 'ru', 'tr', 'zh-cn', 'zh-tw'],
localesToKeep: [
'en',
'ar',
'de',
'en-GB',
'es',
'fr',
'he',
'it',
'nl',
'sv',
'tr',
'zh-CN',
'zh-TW',
],
}),
],
});
Expand Down

0 comments on commit e1edcad

Please sign in to comment.