@lingo.dev/_spec 0.32.0 → 0.33.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.
- package/build/i18n.schema.json +7 -0
- package/build/index.cjs +134 -98
- package/build/index.d.cts +395 -2
- package/build/index.d.ts +395 -2
- package/build/index.mjs +133 -97
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -1061,7 +1061,342 @@ declare const configV1_7Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
1061
1061
|
lockedPatterns?: string[] | undefined;
|
1062
1062
|
}>>>;
|
1063
1063
|
}>, Z.ZodRawShape>;
|
1064
|
-
declare const
|
1064
|
+
declare const bucketValueSchemaV1_8: Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1065
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1066
|
+
path: Z.ZodString;
|
1067
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1068
|
+
}, "strip", Z.ZodTypeAny, {
|
1069
|
+
path: string;
|
1070
|
+
delimiter?: "-" | "_" | null | undefined;
|
1071
|
+
}, {
|
1072
|
+
path: string;
|
1073
|
+
delimiter?: "-" | "_" | null | undefined;
|
1074
|
+
}>]>, "many">>;
|
1075
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1076
|
+
path: Z.ZodString;
|
1077
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1078
|
+
}, "strip", Z.ZodTypeAny, {
|
1079
|
+
path: string;
|
1080
|
+
delimiter?: "-" | "_" | null | undefined;
|
1081
|
+
}, {
|
1082
|
+
path: string;
|
1083
|
+
delimiter?: "-" | "_" | null | undefined;
|
1084
|
+
}>]>, "many">>>;
|
1085
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1086
|
+
}, {
|
1087
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1088
|
+
}>, {
|
1089
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1090
|
+
}>, {
|
1091
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1092
|
+
}>, "strip", Z.ZodTypeAny, {
|
1093
|
+
include: (string | {
|
1094
|
+
path: string;
|
1095
|
+
delimiter?: "-" | "_" | null | undefined;
|
1096
|
+
})[];
|
1097
|
+
exclude?: (string | {
|
1098
|
+
path: string;
|
1099
|
+
delimiter?: "-" | "_" | null | undefined;
|
1100
|
+
})[] | undefined;
|
1101
|
+
injectLocale?: string[] | undefined;
|
1102
|
+
lockedKeys?: string[] | undefined;
|
1103
|
+
lockedPatterns?: string[] | undefined;
|
1104
|
+
ignoredKeys?: string[] | undefined;
|
1105
|
+
}, {
|
1106
|
+
exclude?: (string | {
|
1107
|
+
path: string;
|
1108
|
+
delimiter?: "-" | "_" | null | undefined;
|
1109
|
+
})[] | undefined;
|
1110
|
+
include?: (string | {
|
1111
|
+
path: string;
|
1112
|
+
delimiter?: "-" | "_" | null | undefined;
|
1113
|
+
})[] | undefined;
|
1114
|
+
injectLocale?: string[] | undefined;
|
1115
|
+
lockedKeys?: string[] | undefined;
|
1116
|
+
lockedPatterns?: string[] | undefined;
|
1117
|
+
ignoredKeys?: string[] | undefined;
|
1118
|
+
}>;
|
1119
|
+
declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1120
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
1121
|
+
}, {
|
1122
|
+
locale: Z.ZodObject<{
|
1123
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
1124
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
1125
|
+
}, "strip", Z.ZodTypeAny, {
|
1126
|
+
source: string;
|
1127
|
+
targets: string[];
|
1128
|
+
}, {
|
1129
|
+
source: string;
|
1130
|
+
targets: string[];
|
1131
|
+
}>;
|
1132
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>>>>;
|
1133
|
+
}>, {
|
1134
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<{
|
1135
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
1136
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1137
|
+
}, "strip", Z.ZodTypeAny, {
|
1138
|
+
include: string[];
|
1139
|
+
exclude?: string[] | undefined;
|
1140
|
+
}, {
|
1141
|
+
exclude?: string[] | undefined;
|
1142
|
+
include?: string[] | undefined;
|
1143
|
+
}>>>;
|
1144
|
+
}>, {
|
1145
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
1146
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
1147
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
1148
|
+
}, {
|
1149
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
1150
|
+
}>, "strip", Z.ZodTypeAny, {
|
1151
|
+
source: string;
|
1152
|
+
targets: string[];
|
1153
|
+
extraSource?: string | undefined;
|
1154
|
+
}, {
|
1155
|
+
source: string;
|
1156
|
+
targets: string[];
|
1157
|
+
extraSource?: string | undefined;
|
1158
|
+
}>;
|
1159
|
+
}>, {
|
1160
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<{
|
1161
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1162
|
+
path: Z.ZodString;
|
1163
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1164
|
+
}, "strip", Z.ZodTypeAny, {
|
1165
|
+
path: string;
|
1166
|
+
delimiter?: "-" | "_" | null | undefined;
|
1167
|
+
}, {
|
1168
|
+
path: string;
|
1169
|
+
delimiter?: "-" | "_" | null | undefined;
|
1170
|
+
}>]>, "many">>;
|
1171
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1172
|
+
path: Z.ZodString;
|
1173
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1174
|
+
}, "strip", Z.ZodTypeAny, {
|
1175
|
+
path: string;
|
1176
|
+
delimiter?: "-" | "_" | null | undefined;
|
1177
|
+
}, {
|
1178
|
+
path: string;
|
1179
|
+
delimiter?: "-" | "_" | null | undefined;
|
1180
|
+
}>]>, "many">>>;
|
1181
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1182
|
+
}, "strip", Z.ZodTypeAny, {
|
1183
|
+
include: (string | {
|
1184
|
+
path: string;
|
1185
|
+
delimiter?: "-" | "_" | null | undefined;
|
1186
|
+
})[];
|
1187
|
+
exclude?: (string | {
|
1188
|
+
path: string;
|
1189
|
+
delimiter?: "-" | "_" | null | undefined;
|
1190
|
+
})[] | undefined;
|
1191
|
+
injectLocale?: string[] | undefined;
|
1192
|
+
}, {
|
1193
|
+
exclude?: (string | {
|
1194
|
+
path: string;
|
1195
|
+
delimiter?: "-" | "_" | null | undefined;
|
1196
|
+
})[] | undefined;
|
1197
|
+
include?: (string | {
|
1198
|
+
path: string;
|
1199
|
+
delimiter?: "-" | "_" | null | undefined;
|
1200
|
+
})[] | undefined;
|
1201
|
+
injectLocale?: string[] | undefined;
|
1202
|
+
}>>>;
|
1203
|
+
}>, {
|
1204
|
+
$schema: Z.ZodDefault<Z.ZodString>;
|
1205
|
+
}>, {
|
1206
|
+
provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
|
1207
|
+
id: Z.ZodString;
|
1208
|
+
model: Z.ZodString;
|
1209
|
+
prompt: Z.ZodString;
|
1210
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
1211
|
+
}, {
|
1212
|
+
id: Z.ZodLiteral<"lingo">;
|
1213
|
+
model: Z.ZodLiteral<"best">;
|
1214
|
+
}>, "strip", Z.ZodTypeAny, {
|
1215
|
+
id: "lingo";
|
1216
|
+
model: "best";
|
1217
|
+
prompt: string;
|
1218
|
+
baseUrl?: string | undefined;
|
1219
|
+
}, {
|
1220
|
+
id: "lingo";
|
1221
|
+
model: "best";
|
1222
|
+
prompt: string;
|
1223
|
+
baseUrl?: string | undefined;
|
1224
|
+
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
1225
|
+
id: Z.ZodString;
|
1226
|
+
model: Z.ZodString;
|
1227
|
+
prompt: Z.ZodString;
|
1228
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
1229
|
+
}, {
|
1230
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
1231
|
+
}>, "strip", Z.ZodTypeAny, {
|
1232
|
+
id: "openai" | "anthropic";
|
1233
|
+
model: string;
|
1234
|
+
prompt: string;
|
1235
|
+
baseUrl?: string | undefined;
|
1236
|
+
}, {
|
1237
|
+
id: "openai" | "anthropic";
|
1238
|
+
model: string;
|
1239
|
+
prompt: string;
|
1240
|
+
baseUrl?: string | undefined;
|
1241
|
+
}>]>>>;
|
1242
|
+
}>, {
|
1243
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
1244
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1245
|
+
path: Z.ZodString;
|
1246
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1247
|
+
}, "strip", Z.ZodTypeAny, {
|
1248
|
+
path: string;
|
1249
|
+
delimiter?: "-" | "_" | null | undefined;
|
1250
|
+
}, {
|
1251
|
+
path: string;
|
1252
|
+
delimiter?: "-" | "_" | null | undefined;
|
1253
|
+
}>]>, "many">>;
|
1254
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1255
|
+
path: Z.ZodString;
|
1256
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1257
|
+
}, "strip", Z.ZodTypeAny, {
|
1258
|
+
path: string;
|
1259
|
+
delimiter?: "-" | "_" | null | undefined;
|
1260
|
+
}, {
|
1261
|
+
path: string;
|
1262
|
+
delimiter?: "-" | "_" | null | undefined;
|
1263
|
+
}>]>, "many">>>;
|
1264
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1265
|
+
}, {
|
1266
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1267
|
+
}>, "strip", Z.ZodTypeAny, {
|
1268
|
+
include: (string | {
|
1269
|
+
path: string;
|
1270
|
+
delimiter?: "-" | "_" | null | undefined;
|
1271
|
+
})[];
|
1272
|
+
exclude?: (string | {
|
1273
|
+
path: string;
|
1274
|
+
delimiter?: "-" | "_" | null | undefined;
|
1275
|
+
})[] | undefined;
|
1276
|
+
injectLocale?: string[] | undefined;
|
1277
|
+
lockedKeys?: string[] | undefined;
|
1278
|
+
}, {
|
1279
|
+
exclude?: (string | {
|
1280
|
+
path: string;
|
1281
|
+
delimiter?: "-" | "_" | null | undefined;
|
1282
|
+
})[] | undefined;
|
1283
|
+
include?: (string | {
|
1284
|
+
path: string;
|
1285
|
+
delimiter?: "-" | "_" | null | undefined;
|
1286
|
+
})[] | undefined;
|
1287
|
+
injectLocale?: string[] | undefined;
|
1288
|
+
lockedKeys?: string[] | undefined;
|
1289
|
+
}>>>;
|
1290
|
+
}>, {
|
1291
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1292
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1293
|
+
path: Z.ZodString;
|
1294
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1295
|
+
}, "strip", Z.ZodTypeAny, {
|
1296
|
+
path: string;
|
1297
|
+
delimiter?: "-" | "_" | null | undefined;
|
1298
|
+
}, {
|
1299
|
+
path: string;
|
1300
|
+
delimiter?: "-" | "_" | null | undefined;
|
1301
|
+
}>]>, "many">>;
|
1302
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1303
|
+
path: Z.ZodString;
|
1304
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1305
|
+
}, "strip", Z.ZodTypeAny, {
|
1306
|
+
path: string;
|
1307
|
+
delimiter?: "-" | "_" | null | undefined;
|
1308
|
+
}, {
|
1309
|
+
path: string;
|
1310
|
+
delimiter?: "-" | "_" | null | undefined;
|
1311
|
+
}>]>, "many">>>;
|
1312
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1313
|
+
}, {
|
1314
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1315
|
+
}>, {
|
1316
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1317
|
+
}>, "strip", Z.ZodTypeAny, {
|
1318
|
+
include: (string | {
|
1319
|
+
path: string;
|
1320
|
+
delimiter?: "-" | "_" | null | undefined;
|
1321
|
+
})[];
|
1322
|
+
exclude?: (string | {
|
1323
|
+
path: string;
|
1324
|
+
delimiter?: "-" | "_" | null | undefined;
|
1325
|
+
})[] | undefined;
|
1326
|
+
injectLocale?: string[] | undefined;
|
1327
|
+
lockedKeys?: string[] | undefined;
|
1328
|
+
lockedPatterns?: string[] | undefined;
|
1329
|
+
}, {
|
1330
|
+
exclude?: (string | {
|
1331
|
+
path: string;
|
1332
|
+
delimiter?: "-" | "_" | null | undefined;
|
1333
|
+
})[] | undefined;
|
1334
|
+
include?: (string | {
|
1335
|
+
path: string;
|
1336
|
+
delimiter?: "-" | "_" | null | undefined;
|
1337
|
+
})[] | undefined;
|
1338
|
+
injectLocale?: string[] | undefined;
|
1339
|
+
lockedKeys?: string[] | undefined;
|
1340
|
+
lockedPatterns?: string[] | undefined;
|
1341
|
+
}>>>;
|
1342
|
+
}>, {
|
1343
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1344
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1345
|
+
path: Z.ZodString;
|
1346
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1347
|
+
}, "strip", Z.ZodTypeAny, {
|
1348
|
+
path: string;
|
1349
|
+
delimiter?: "-" | "_" | null | undefined;
|
1350
|
+
}, {
|
1351
|
+
path: string;
|
1352
|
+
delimiter?: "-" | "_" | null | undefined;
|
1353
|
+
}>]>, "many">>;
|
1354
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1355
|
+
path: Z.ZodString;
|
1356
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1357
|
+
}, "strip", Z.ZodTypeAny, {
|
1358
|
+
path: string;
|
1359
|
+
delimiter?: "-" | "_" | null | undefined;
|
1360
|
+
}, {
|
1361
|
+
path: string;
|
1362
|
+
delimiter?: "-" | "_" | null | undefined;
|
1363
|
+
}>]>, "many">>>;
|
1364
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1365
|
+
}, {
|
1366
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1367
|
+
}>, {
|
1368
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1369
|
+
}>, {
|
1370
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1371
|
+
}>, "strip", Z.ZodTypeAny, {
|
1372
|
+
include: (string | {
|
1373
|
+
path: string;
|
1374
|
+
delimiter?: "-" | "_" | null | undefined;
|
1375
|
+
})[];
|
1376
|
+
exclude?: (string | {
|
1377
|
+
path: string;
|
1378
|
+
delimiter?: "-" | "_" | null | undefined;
|
1379
|
+
})[] | undefined;
|
1380
|
+
injectLocale?: string[] | undefined;
|
1381
|
+
lockedKeys?: string[] | undefined;
|
1382
|
+
lockedPatterns?: string[] | undefined;
|
1383
|
+
ignoredKeys?: string[] | undefined;
|
1384
|
+
}, {
|
1385
|
+
exclude?: (string | {
|
1386
|
+
path: string;
|
1387
|
+
delimiter?: "-" | "_" | null | undefined;
|
1388
|
+
})[] | undefined;
|
1389
|
+
include?: (string | {
|
1390
|
+
path: string;
|
1391
|
+
delimiter?: "-" | "_" | null | undefined;
|
1392
|
+
})[] | undefined;
|
1393
|
+
injectLocale?: string[] | undefined;
|
1394
|
+
lockedKeys?: string[] | undefined;
|
1395
|
+
lockedPatterns?: string[] | undefined;
|
1396
|
+
ignoredKeys?: string[] | undefined;
|
1397
|
+
}>>>;
|
1398
|
+
}>, Z.ZodRawShape>;
|
1399
|
+
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1065
1400
|
version: Z.ZodDefault<Z.ZodNumber>;
|
1066
1401
|
}, {
|
1067
1402
|
locale: Z.ZodObject<{
|
@@ -1284,6 +1619,62 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
1284
1619
|
lockedKeys?: string[] | undefined;
|
1285
1620
|
lockedPatterns?: string[] | undefined;
|
1286
1621
|
}>>>;
|
1622
|
+
}>, {
|
1623
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1624
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1625
|
+
path: Z.ZodString;
|
1626
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1627
|
+
}, "strip", Z.ZodTypeAny, {
|
1628
|
+
path: string;
|
1629
|
+
delimiter?: "-" | "_" | null | undefined;
|
1630
|
+
}, {
|
1631
|
+
path: string;
|
1632
|
+
delimiter?: "-" | "_" | null | undefined;
|
1633
|
+
}>]>, "many">>;
|
1634
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1635
|
+
path: Z.ZodString;
|
1636
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1637
|
+
}, "strip", Z.ZodTypeAny, {
|
1638
|
+
path: string;
|
1639
|
+
delimiter?: "-" | "_" | null | undefined;
|
1640
|
+
}, {
|
1641
|
+
path: string;
|
1642
|
+
delimiter?: "-" | "_" | null | undefined;
|
1643
|
+
}>]>, "many">>>;
|
1644
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1645
|
+
}, {
|
1646
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1647
|
+
}>, {
|
1648
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1649
|
+
}>, {
|
1650
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1651
|
+
}>, "strip", Z.ZodTypeAny, {
|
1652
|
+
include: (string | {
|
1653
|
+
path: string;
|
1654
|
+
delimiter?: "-" | "_" | null | undefined;
|
1655
|
+
})[];
|
1656
|
+
exclude?: (string | {
|
1657
|
+
path: string;
|
1658
|
+
delimiter?: "-" | "_" | null | undefined;
|
1659
|
+
})[] | undefined;
|
1660
|
+
injectLocale?: string[] | undefined;
|
1661
|
+
lockedKeys?: string[] | undefined;
|
1662
|
+
lockedPatterns?: string[] | undefined;
|
1663
|
+
ignoredKeys?: string[] | undefined;
|
1664
|
+
}, {
|
1665
|
+
exclude?: (string | {
|
1666
|
+
path: string;
|
1667
|
+
delimiter?: "-" | "_" | null | undefined;
|
1668
|
+
})[] | undefined;
|
1669
|
+
include?: (string | {
|
1670
|
+
path: string;
|
1671
|
+
delimiter?: "-" | "_" | null | undefined;
|
1672
|
+
})[] | undefined;
|
1673
|
+
injectLocale?: string[] | undefined;
|
1674
|
+
lockedKeys?: string[] | undefined;
|
1675
|
+
lockedPatterns?: string[] | undefined;
|
1676
|
+
ignoredKeys?: string[] | undefined;
|
1677
|
+
}>>>;
|
1287
1678
|
}>, Z.ZodRawShape>;
|
1288
1679
|
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
1289
1680
|
declare function parseI18nConfig(rawConfig: unknown): {
|
@@ -1305,6 +1696,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
1305
1696
|
injectLocale?: string[] | undefined;
|
1306
1697
|
lockedKeys?: string[] | undefined;
|
1307
1698
|
lockedPatterns?: string[] | undefined;
|
1699
|
+
ignoredKeys?: string[] | undefined;
|
1308
1700
|
}>>;
|
1309
1701
|
$schema: string;
|
1310
1702
|
provider?: {
|
@@ -1338,6 +1730,7 @@ declare const defaultConfig: {
|
|
1338
1730
|
injectLocale?: string[] | undefined;
|
1339
1731
|
lockedKeys?: string[] | undefined;
|
1340
1732
|
lockedPatterns?: string[] | undefined;
|
1733
|
+
ignoredKeys?: string[] | undefined;
|
1341
1734
|
}>>;
|
1342
1735
|
$schema: string;
|
1343
1736
|
provider?: {
|
@@ -1353,4 +1746,4 @@ declare const defaultConfig: {
|
|
1353
1746
|
} | undefined;
|
1354
1747
|
};
|
1355
1748
|
|
1356
|
-
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
1749
|
+
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, bucketValueSchemaV1_8, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, configV1_8Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|