mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 11:15:23 -04:00
Fix linting errors
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
74b0562fc8
commit
c017df0a3c
24 changed files with 35 additions and 33 deletions
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import i18n from 'i18next'
|
||||
import i18n, { ResourceKey } from 'i18next'
|
||||
import LanguageDetector from 'i18next-browser-languagedetector'
|
||||
import resourcesToBackend from 'i18next-resources-to-backend'
|
||||
import { Settings } from 'luxon'
|
||||
|
@ -15,10 +15,10 @@ export const setUpI18n = async (): Promise<void> => {
|
|||
.use(
|
||||
resourcesToBackend((language, namespace, callback) => {
|
||||
import(`../../../../../locales/${language}.json`)
|
||||
.then((resources) => {
|
||||
.then((resources: ResourceKey) => {
|
||||
callback(null, resources)
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error: Error) => {
|
||||
callback(error, null)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue