@mirodan/ai-insight 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const messages
|
|
1
|
+
const messages = {
|
|
2
2
|
ru: {
|
|
3
3
|
CONFIG_ENDPOINT_MISSING: 'Не указан endpoint AI Insight',
|
|
4
4
|
CONFIG_KEY_MISSING: 'Не указан API-ключ AI Insight',
|
|
@@ -13,6 +13,6 @@ const messages: Record<string, Record<string, string>> = {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function tError(key
|
|
16
|
+
export function tError(key, lang) {
|
|
17
17
|
return messages[lang === 'en' ? 'en' : 'ru']?.[key] || key
|
|
18
18
|
}
|