@grammyjs/fluent
Advanced tools
Comparing version 1.0.3 to 1.1.0-beta.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useFluent = void 0; | ||
exports.useFluent = useFluent; | ||
const locale_negotiator_1 = require("./locale-negotiator"); | ||
@@ -32,3 +32,2 @@ const fallbackLocale = 'en'; | ||
} | ||
exports.useFluent = useFluent; | ||
//# sourceMappingURL=middleware.js.map |
import { LocaleId } from '@moebius/fluent'; | ||
import { Context } from 'grammy'; | ||
export declare type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | undefined | PromiseLike<LocaleId | undefined>); | ||
export type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | undefined | PromiseLike<LocaleId | undefined>); | ||
export declare const defaultLocaleNegotiator: LocaleNegotiator; |
@@ -9,3 +9,3 @@ import { Fluent, LocaleId, TranslationContext } from '@moebius/fluent'; | ||
} | ||
export declare type TranslateFunction = ((messageId: string, context?: TranslationContext) => string); | ||
export type TranslateFunction = ((messageId: string, context?: TranslationContext) => string); | ||
export interface FluentContextFlavor { | ||
@@ -12,0 +12,0 @@ fluent: { |
{ | ||
"name": "@grammyjs/fluent", | ||
"version": "1.0.3", | ||
"version": "1.1.0-beta.1", | ||
"description": "Fluent localization system integration for grammY Telegram bot framework", | ||
@@ -54,3 +54,3 @@ "scripts": { | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=18" | ||
}, | ||
@@ -64,12 +64,12 @@ "files": [ | ||
"peerDependencies": { | ||
"@moebius/fluent": "^1.0.0", | ||
"grammy": "^1.5.0" | ||
"@moebius/fluent": "^1.1.0", | ||
"grammy": "^1.33.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/node": "^12.20.46", | ||
"@types/node": "^18.19.68", | ||
"npm-run-all": "^4.1.5", | ||
"ts-node": "^10.6.0", | ||
"typescript": "^4.6.2" | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.7.2" | ||
} | ||
} |
@@ -349,3 +349,3 @@ | ||
Copyright © 2021 Slava Fomin II | ||
Copyright © 2021—2024 Slava Fomin II | ||
@@ -352,0 +352,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17612
65
1