This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-undef, new-cap */ | |
i18next | |
.use(i18nextXHRBackend) | |
.use(i18nextBrowserLanguageDetector) | |
.init({ | |
fallbackLng: 'en', | |
backend: { | |
loadPath: '../locales/{{lng}}/{{ns}}.json' | |
}, | |
ns: ['translations'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const i18nextPromise = i18next.use(i18nextHttpBackend).init({ | |
debug: true, | |
lng: 'en', | |
fallbackLng: 'en', | |
backend: { | |
loadPath: './locales/{{lng}}/{{ns}}.json' | |
} | |
}); | |
const app = Vue.createApp({}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import { handler } from './lambda.js' // let's import it dynamically, so we can measure... | |
const evt = { | |
httpMethod: 'GET', | |
path: '/test', | |
headers: {} | |
} | |
const ctx = {} | |
let st = Date.now() |
OlderNewer