@lingo.dev/_spec 0.41.0 → 0.41.1

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.
@@ -144,6 +144,7 @@
144
144
  "xcode-strings",
145
145
  "xcode-stringsdict",
146
146
  "xcode-xcstrings",
147
+ "xcode-xcstrings-v2",
147
148
  "yaml",
148
149
  "yaml-root-key",
149
150
  "properties",
package/build/index.cjs CHANGED
@@ -357,6 +357,7 @@ var bucketTypes = [
357
357
  "xcode-strings",
358
358
  "xcode-stringsdict",
359
359
  "xcode-xcstrings",
360
+ "xcode-xcstrings-v2",
360
361
  "yaml",
361
362
  "yaml-root-key",
362
363
  "properties",
package/build/index.d.cts CHANGED
@@ -119,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
119
119
  */
120
120
  declare function normalizeLocale(locale: string): string;
121
121
 
122
- declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
- declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
122
+ declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
+ declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
124
124
 
125
125
  declare const localeSchema: Z.ZodObject<{
126
126
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -153,7 +153,7 @@ declare const configV1Definition: ConfigDefinition<{
153
153
  source: string;
154
154
  targets: string[];
155
155
  }>;
156
- buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
156
+ buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
157
157
  }, any>;
158
158
  declare const configV1_1Definition: ConfigDefinition<{
159
159
  version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
@@ -168,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
168
168
  targets: string[];
169
169
  }>;
170
170
  } & {
171
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
171
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
172
172
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
173
173
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
174
174
  }, "strip", Z.ZodTypeAny, {
@@ -181,7 +181,7 @@ declare const configV1_1Definition: ConfigDefinition<{
181
181
  }, any>;
182
182
  declare const configV1_2Definition: ConfigDefinition<{
183
183
  version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
184
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
184
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
185
185
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
186
186
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
187
187
  }, "strip", Z.ZodTypeAny, {
@@ -278,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
278
278
  extraSource?: string | undefined;
279
279
  }>;
280
280
  } & {
281
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
281
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
282
282
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
283
283
  path: Z.ZodString;
284
284
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -339,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
339
339
  extraSource?: string | undefined;
340
340
  }>;
341
341
  } & {
342
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
342
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
343
343
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
344
344
  path: Z.ZodString;
345
345
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -402,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
402
402
  extraSource?: string | undefined;
403
403
  }>;
404
404
  } & {
405
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
405
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
406
406
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
407
407
  path: Z.ZodString;
408
408
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -546,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
546
546
  baseUrl?: string | undefined;
547
547
  }>>;
548
548
  } & {
549
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
549
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
550
550
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
551
551
  path: Z.ZodString;
552
552
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -679,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
679
679
  baseUrl?: string | undefined;
680
680
  }>>;
681
681
  } & {
682
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
682
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
683
683
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
684
684
  path: Z.ZodString;
685
685
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -820,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
820
820
  baseUrl?: string | undefined;
821
821
  }>>;
822
822
  } & {
823
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
823
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
824
824
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
825
825
  path: Z.ZodString;
826
826
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -910,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
910
910
  baseUrl?: string | undefined;
911
911
  }>>;
912
912
  } & {
913
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
913
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
914
914
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
915
915
  path: Z.ZodString;
916
916
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -985,7 +985,7 @@ declare const configV1_10Definition: ConfigDefinition<{
985
985
  extraSource?: string | undefined;
986
986
  }>;
987
987
  $schema: Z.ZodDefault<Z.ZodString>;
988
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
988
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
989
989
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
990
990
  path: Z.ZodString;
991
991
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1089,7 +1089,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1089
1089
  extraSource?: string | undefined;
1090
1090
  }>;
1091
1091
  $schema: Z.ZodDefault<Z.ZodString>;
1092
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1092
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1093
1093
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1094
1094
  path: Z.ZodString;
1095
1095
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1184,7 +1184,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
1184
1184
  targets: string[];
1185
1185
  extraSource?: string | undefined;
1186
1186
  };
1187
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1187
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1188
1188
  include: (string | {
1189
1189
  path: string;
1190
1190
  delimiter?: "-" | "_" | null | undefined;
@@ -1217,7 +1217,7 @@ declare const defaultConfig: {
1217
1217
  targets: string[];
1218
1218
  extraSource?: string | undefined;
1219
1219
  };
1220
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1220
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1221
1221
  include: (string | {
1222
1222
  path: string;
1223
1223
  delimiter?: "-" | "_" | null | undefined;
package/build/index.d.ts CHANGED
@@ -119,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
119
119
  */
120
120
  declare function normalizeLocale(locale: string): string;
121
121
 
122
- declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
- declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
122
+ declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
+ declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
124
124
 
125
125
  declare const localeSchema: Z.ZodObject<{
126
126
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -153,7 +153,7 @@ declare const configV1Definition: ConfigDefinition<{
153
153
  source: string;
154
154
  targets: string[];
155
155
  }>;
156
- buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
156
+ buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
157
157
  }, any>;
158
158
  declare const configV1_1Definition: ConfigDefinition<{
159
159
  version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
@@ -168,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
168
168
  targets: string[];
169
169
  }>;
170
170
  } & {
171
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
171
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
172
172
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
173
173
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
174
174
  }, "strip", Z.ZodTypeAny, {
@@ -181,7 +181,7 @@ declare const configV1_1Definition: ConfigDefinition<{
181
181
  }, any>;
182
182
  declare const configV1_2Definition: ConfigDefinition<{
183
183
  version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
184
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
184
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
185
185
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
186
186
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
187
187
  }, "strip", Z.ZodTypeAny, {
@@ -278,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
278
278
  extraSource?: string | undefined;
279
279
  }>;
280
280
  } & {
281
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
281
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
282
282
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
283
283
  path: Z.ZodString;
284
284
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -339,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
339
339
  extraSource?: string | undefined;
340
340
  }>;
341
341
  } & {
342
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
342
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
343
343
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
344
344
  path: Z.ZodString;
345
345
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -402,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
402
402
  extraSource?: string | undefined;
403
403
  }>;
404
404
  } & {
405
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
405
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
406
406
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
407
407
  path: Z.ZodString;
408
408
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -546,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
546
546
  baseUrl?: string | undefined;
547
547
  }>>;
548
548
  } & {
549
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
549
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
550
550
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
551
551
  path: Z.ZodString;
552
552
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -679,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
679
679
  baseUrl?: string | undefined;
680
680
  }>>;
681
681
  } & {
682
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
682
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
683
683
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
684
684
  path: Z.ZodString;
685
685
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -820,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
820
820
  baseUrl?: string | undefined;
821
821
  }>>;
822
822
  } & {
823
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
823
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
824
824
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
825
825
  path: Z.ZodString;
826
826
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -910,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
910
910
  baseUrl?: string | undefined;
911
911
  }>>;
912
912
  } & {
913
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
913
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
914
914
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
915
915
  path: Z.ZodString;
916
916
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -985,7 +985,7 @@ declare const configV1_10Definition: ConfigDefinition<{
985
985
  extraSource?: string | undefined;
986
986
  }>;
987
987
  $schema: Z.ZodDefault<Z.ZodString>;
988
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
988
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
989
989
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
990
990
  path: Z.ZodString;
991
991
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1089,7 +1089,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1089
1089
  extraSource?: string | undefined;
1090
1090
  }>;
1091
1091
  $schema: Z.ZodDefault<Z.ZodString>;
1092
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1092
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1093
1093
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1094
1094
  path: Z.ZodString;
1095
1095
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1184,7 +1184,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
1184
1184
  targets: string[];
1185
1185
  extraSource?: string | undefined;
1186
1186
  };
1187
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1187
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1188
1188
  include: (string | {
1189
1189
  path: string;
1190
1190
  delimiter?: "-" | "_" | null | undefined;
@@ -1217,7 +1217,7 @@ declare const defaultConfig: {
1217
1217
  targets: string[];
1218
1218
  extraSource?: string | undefined;
1219
1219
  };
1220
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1220
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1221
1221
  include: (string | {
1222
1222
  path: string;
1223
1223
  delimiter?: "-" | "_" | null | undefined;
package/build/index.mjs CHANGED
@@ -357,6 +357,7 @@ var bucketTypes = [
357
357
  "xcode-strings",
358
358
  "xcode-stringsdict",
359
359
  "xcode-xcstrings",
360
+ "xcode-xcstrings-v2",
360
361
  "yaml",
361
362
  "yaml-root-key",
362
363
  "properties",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_spec",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "Lingo.dev open specification",
5
5
  "private": false,
6
6
  "publishConfig": {