@adminforth/i18n 2.0.11 → 2.0.12

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "p-limit": "^7.3.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "adminforth": "^2.24.0"
41
+ "adminforth": "^2.30.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.10.7",
package/types.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { CompletionAdapter, EmailAdapter } from 'adminforth';
2
2
  import type { LanguageCode } from 'iso-639-1';
3
3
  import { iso31661Alpha2ToAlpha3 } from 'iso-3166';
4
-
4
+ import {type PluginsCommonOptions } from "adminforth";
5
5
 
6
6
  // BCP-47 support for types only: primary subtag is ISO 639-1, optional region
7
7
  type Alpha2Code = keyof typeof iso31661Alpha2ToAlpha3;
8
8
  type Bcp47LanguageTag = `${LanguageCode}-${Alpha2Code}`;
9
9
  export type SupportedLanguage = LanguageCode | Bcp47LanguageTag;
10
10
 
11
- export interface PluginOptions {
11
+ export interface PluginOptions extends PluginsCommonOptions {
12
12
 
13
13
  /* List of language codes which you want to support. Can be either short ISO 639-1 language codes or/and BCP47 tags */
14
14
  supportedLanguages: SupportedLanguage[];