mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 17:56:51 +02:00
Add language selector to FAB
This commit is contained in:
parent
0ff82505a6
commit
c7e3c22cff
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
// For more information, see https://fab.dev/kb/configuration
|
||||
{
|
||||
plugins: {
|
||||
'./src/server/languageRedirect.js': {},
|
||||
'@fab/input-static': {
|
||||
dir: 'public'
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const config = require("../../config"), locale = require("locale");
|
||||
const config = require("../../config");
|
||||
const locale = require("locale");
|
||||
|
||||
let supported = new locale.Locales(conifg.languages);
|
||||
let supported = new locale.Locales(config.languages);
|
||||
let defaultLang = "en";
|
||||
|
||||
export default ({ Router }) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue