chore(i18n)!: export plurals from index

breaking: `@mtcute/i18n/*` imports are now all in `@mtcute/i18n`
This commit is contained in:
alina 🌸 2024-04-25 13:27:04 +03:00
parent 2f39f16ad1
commit 9389cf8b5f
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 3 additions and 4 deletions

View file

@ -11,10 +11,7 @@
"scripts": {
"build": "pnpm run -w build-package i18n"
},
"exports": {
".": "./src/index.ts",
"./plurals/*": "./src/plurals/*"
},
"exports": "./src/index.ts",
"devDependencies": {
"@mtcute/core": "workspace:^",
"@mtcute/dispatcher": "workspace:^"

View file

@ -1,6 +1,8 @@
import { I18nStrings, I18nValue, MtcuteI18nAdapter, MtcuteI18nFunction, OtherLanguageWrap } from './types.js'
import { createI18nStringsIndex, extractLanguageFromUpdate } from './utils.js'
export * from './plurals/english.js'
export * from './plurals/russian.js'
export * from './types.js'
export { extractLanguageFromUpdate } from './utils.js'