Skip to content

Commit

Permalink
fix(format): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Jan 18, 2025
1 parent 9558452 commit 8fab0ea
Show file tree
Hide file tree
Showing 6 changed files with 392 additions and 386 deletions.
2 changes: 2 additions & 0 deletions src/i18n/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ export const initFormatters: FormattersInitializer<Locales, Formatters> = (local
// add your formatter functions here
}

console.log(locale)

return formatters
}
7 changes: 6 additions & 1 deletion src/i18n/i18n-svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { initI18nSvelte } from 'typesafe-i18n/svelte'
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales } from './i18n-util'

const { locale, LL, setLocale } = initI18nSvelte<Locales, Translations, TranslationFunctions, Formatters>(loadedLocales, loadedFormatters)
const { locale, LL, setLocale } = initI18nSvelte<
Locales,
Translations,
TranslationFunctions,
Formatters
>(loadedLocales, loadedFormatters)

export { locale, LL, setLocale }

Expand Down
Loading

0 comments on commit 8fab0ea

Please sign in to comment.