Skip to content

Commit

Permalink
chore: gen
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Jun 29, 2024
1 parent 98cb782 commit 4910132
Show file tree
Hide file tree
Showing 7 changed files with 341 additions and 340 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lockb
packages/i18n/**/*.ts
8 changes: 4 additions & 4 deletions packages/i18n/src/i18n/i18n-node.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */

import { i18n } from "./i18n-util.js"
import { loadAllLocales } from "./i18n-util.sync.js"
import type { LocaleTranslationFunctions } from "typesafe-i18n"
import type { Locales, Translations, TranslationFunctions } from "./i18n-types.js"
import { i18n } from './i18n-util.js'
import { loadAllLocales } from './i18n-util.sync.js'
import type { LocaleTranslationFunctions } from 'typesafe-i18n'
import type { Locales, Translations, TranslationFunctions } from './i18n-types.js'

loadAllLocales()

Expand Down
13 changes: 5 additions & 8 deletions packages/i18n/src/i18n/i18n-svelte.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */

import { initI18nSvelte } from "typesafe-i18n/svelte"
import type { Formatters, Locales, TranslationFunctions, Translations } from "./i18n-types.js"
import { loadedFormatters, loadedLocales } from "./i18n-util.js"

const { locale, LL, setLocale } = initI18nSvelte<Locales, Translations, TranslationFunctions, Formatters>(
loadedLocales,
loadedFormatters,
)
import { initI18nSvelte } from 'typesafe-i18n/svelte'
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types.js'
import { loadedFormatters, loadedLocales } from './i18n-util.js'

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

export { locale, LL, setLocale }

Expand Down
Loading

0 comments on commit 4910132

Please sign in to comment.