mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-17 01:52:02 +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
|
// For more information, see https://fab.dev/kb/configuration
|
||||||
{
|
{
|
||||||
plugins: {
|
plugins: {
|
||||||
|
'./src/server/languageRedirect.js': {},
|
||||||
'@fab/input-static': {
|
'@fab/input-static': {
|
||||||
dir: 'public'
|
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";
|
let defaultLang = "en";
|
||||||
|
|
||||||
export default ({ Router }) => {
|
export default ({ Router }) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue