@assemblyvoting/types 1.0.5 → 1.0.6

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.
@@ -0,0 +1 @@
1
+ export * from "./supported_locales.js";
@@ -0,0 +1,24 @@
1
+ const SUPPORTED_LOCALES = [
2
+ "ar",
3
+ "ca",
4
+ "cy",
5
+ "da",
6
+ "de",
7
+ "en",
8
+ "es",
9
+ "fi",
10
+ "fr",
11
+ "is",
12
+ "it",
13
+ "ja",
14
+ "ko",
15
+ "nl",
16
+ "pl",
17
+ "pt",
18
+ "ro",
19
+ "ru",
20
+ "sv",
21
+ "zh",
22
+ ];
23
+ const BACKEND_LOCALES = ["ca", "da", "de", "en", "es", "fr"];
24
+ export { SUPPORTED_LOCALES, BACKEND_LOCALES };
@@ -1,4 +1,4 @@
1
- import { SUPPORTED_LOCALES, BACKEND_LOCALES } from "@/constants";
1
+ import { SUPPORTED_LOCALES, BACKEND_LOCALES } from "../../constants/index.js";
2
2
  export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
3
3
  export type BackendLocale = (typeof BACKEND_LOCALES)[number];
4
4
  export type LocalString = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyvoting/types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Types library for LUMI Denmark",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "node": ">=20"
28
28
  },
29
29
  "scripts": {
30
- "build": "tsc && tsc-alias --project tsconfig.json && tsc && tsc-alias --project tsconfig.constants.json",
30
+ "build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json && tsc --project tsconfig.constants.json && tsc-alias --project tsconfig.constants.json",
31
31
  "lint": "run-s lint:*",
32
32
  "lint:oxlint": "oxlint . --fix",
33
33
  "lint:eslint": "eslint . --fix --cache",