waha-shared 1.0.480 → 1.0.482
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/dist/data/bibleStatuses/bibleStatuses.json +290 -0
- package/dist/data/languages/languages.json +7 -3
- package/dist/data/mediaDurations/mediaDurations.json +888 -0
- package/dist/data/releaseNotes/releaseNotes.json +111 -2
- package/dist/data/translationsApp/index.d.ts +0 -16
- package/dist/data/translationsApp/translationsApp.json +434 -656
- package/dist/data/translationsApp/translationsApp.schema.json +0 -18
- package/dist/data/translationsApp/translationsApp.zod.d.ts +0 -46
- package/dist/data/translationsApp/translationsApp.zod.js +2 -17
- package/dist/functions/crowdin.js +2 -2
- package/dist/types/dripSequence.d.ts +5 -2
- package/dist/types/dripSequence.js +1 -1
- package/package.json +6 -2
|
@@ -17,22 +17,8 @@
|
|
|
17
17
|
"some": { "type": "string" },
|
|
18
18
|
"none": { "type": "string" },
|
|
19
19
|
"highlight_verse": { "type": "string" },
|
|
20
|
-
"join_others_discovering": { "type": "string" },
|
|
21
20
|
"people_shared_last_week": { "type": "string" },
|
|
22
|
-
"onboarding_dbs_intro_heading": { "type": "string" },
|
|
23
|
-
"onboarding_dbs_intro_body": { "type": "string" },
|
|
24
|
-
"onboarding_invite_group_heading": { "type": "string" },
|
|
25
|
-
"onboarding_invite_group_body": { "type": "string" },
|
|
26
|
-
"popups_need_help_with_group_title": { "type": "string" },
|
|
27
|
-
"popups_need_help_with_group_message": { "type": "string" },
|
|
28
21
|
"popups_micro_lessons_banner": { "type": "string" },
|
|
29
|
-
"question_in_a_group": { "type": "string" },
|
|
30
|
-
"question_what_brings_you_question": { "type": "string" },
|
|
31
|
-
"question_what_brings_you_body": { "type": "string" },
|
|
32
|
-
"question_what_brings_you_option_1": { "type": "string" },
|
|
33
|
-
"question_what_brings_you_option_2": { "type": "string" },
|
|
34
|
-
"question_what_brings_you_option_3": { "type": "string" },
|
|
35
|
-
"question_what_brings_you_option_4": { "type": "string" },
|
|
36
22
|
"name": { "type": "string", "minLength": 1 },
|
|
37
23
|
"version": { "type": "string", "minLength": 1 },
|
|
38
24
|
"a11y_add_secondary_language_hint": {
|
|
@@ -519,11 +505,9 @@
|
|
|
519
505
|
"article": { "type": "string", "minLength": 1 },
|
|
520
506
|
"no_results": { "type": "string", "minLength": 1 },
|
|
521
507
|
"no_notes": { "type": "string", "minLength": 1 },
|
|
522
|
-
"not_yet": { "type": "string", "minLength": 1 },
|
|
523
508
|
"micro_lesson": { "type": "string", "minLength": 1 },
|
|
524
509
|
"micro_lessons": { "type": "string", "minLength": 1 },
|
|
525
510
|
"filter_micro_lessons": { "type": "string", "minLength": 1 },
|
|
526
|
-
"question_placeholder": { "type": "string", "minLength": 1 },
|
|
527
511
|
"no_text_available": { "type": "string" },
|
|
528
512
|
"share_story_audio": { "type": "string" },
|
|
529
513
|
"read_along": { "type": "string" },
|
|
@@ -871,11 +855,9 @@
|
|
|
871
855
|
"article",
|
|
872
856
|
"no_results",
|
|
873
857
|
"no_notes",
|
|
874
|
-
"not_yet",
|
|
875
858
|
"micro_lesson",
|
|
876
859
|
"micro_lessons",
|
|
877
860
|
"filter_micro_lessons",
|
|
878
|
-
"question_placeholder",
|
|
879
861
|
"no_text_available",
|
|
880
862
|
"share_story_audio",
|
|
881
863
|
"read_along",
|
|
@@ -13,22 +13,8 @@ export declare const TrickyStrings: z.ZodObject<{
|
|
|
13
13
|
some: z.ZodOptional<z.ZodString>;
|
|
14
14
|
none: z.ZodOptional<z.ZodString>;
|
|
15
15
|
highlight_verse: z.ZodOptional<z.ZodString>;
|
|
16
|
-
join_others_discovering: z.ZodOptional<z.ZodString>;
|
|
17
16
|
people_shared_last_week: z.ZodOptional<z.ZodString>;
|
|
18
|
-
onboarding_dbs_intro_heading: z.ZodOptional<z.ZodString>;
|
|
19
|
-
onboarding_dbs_intro_body: z.ZodOptional<z.ZodString>;
|
|
20
|
-
onboarding_invite_group_heading: z.ZodOptional<z.ZodString>;
|
|
21
|
-
onboarding_invite_group_body: z.ZodOptional<z.ZodString>;
|
|
22
|
-
popups_need_help_with_group_title: z.ZodOptional<z.ZodString>;
|
|
23
|
-
popups_need_help_with_group_message: z.ZodOptional<z.ZodString>;
|
|
24
17
|
popups_micro_lessons_banner: z.ZodOptional<z.ZodString>;
|
|
25
|
-
question_in_a_group: z.ZodOptional<z.ZodString>;
|
|
26
|
-
question_what_brings_you_question: z.ZodOptional<z.ZodString>;
|
|
27
|
-
question_what_brings_you_body: z.ZodOptional<z.ZodString>;
|
|
28
|
-
question_what_brings_you_option_1: z.ZodOptional<z.ZodString>;
|
|
29
|
-
question_what_brings_you_option_2: z.ZodOptional<z.ZodString>;
|
|
30
|
-
question_what_brings_you_option_3: z.ZodOptional<z.ZodString>;
|
|
31
|
-
question_what_brings_you_option_4: z.ZodOptional<z.ZodString>;
|
|
32
18
|
}, z.core.$strip>;
|
|
33
19
|
export declare const LanguageTranslationsApp: z.ZodObject<{
|
|
34
20
|
name: z.ZodString;
|
|
@@ -338,11 +324,9 @@ export declare const LanguageTranslationsApp: z.ZodObject<{
|
|
|
338
324
|
article: z.ZodString;
|
|
339
325
|
no_results: z.ZodString;
|
|
340
326
|
no_notes: z.ZodString;
|
|
341
|
-
not_yet: z.ZodString;
|
|
342
327
|
micro_lesson: z.ZodString;
|
|
343
328
|
micro_lessons: z.ZodString;
|
|
344
329
|
filter_micro_lessons: z.ZodString;
|
|
345
|
-
question_placeholder: z.ZodString;
|
|
346
330
|
no_text_available: z.ZodString;
|
|
347
331
|
share_story_audio: z.ZodString;
|
|
348
332
|
read_along: z.ZodString;
|
|
@@ -387,22 +371,8 @@ export declare const LanguageTranslationsApp: z.ZodObject<{
|
|
|
387
371
|
some: z.ZodOptional<z.ZodString>;
|
|
388
372
|
none: z.ZodOptional<z.ZodString>;
|
|
389
373
|
highlight_verse: z.ZodOptional<z.ZodString>;
|
|
390
|
-
join_others_discovering: z.ZodOptional<z.ZodString>;
|
|
391
374
|
people_shared_last_week: z.ZodOptional<z.ZodString>;
|
|
392
|
-
onboarding_dbs_intro_heading: z.ZodOptional<z.ZodString>;
|
|
393
|
-
onboarding_dbs_intro_body: z.ZodOptional<z.ZodString>;
|
|
394
|
-
onboarding_invite_group_heading: z.ZodOptional<z.ZodString>;
|
|
395
|
-
onboarding_invite_group_body: z.ZodOptional<z.ZodString>;
|
|
396
|
-
popups_need_help_with_group_title: z.ZodOptional<z.ZodString>;
|
|
397
|
-
popups_need_help_with_group_message: z.ZodOptional<z.ZodString>;
|
|
398
375
|
popups_micro_lessons_banner: z.ZodOptional<z.ZodString>;
|
|
399
|
-
question_in_a_group: z.ZodOptional<z.ZodString>;
|
|
400
|
-
question_what_brings_you_question: z.ZodOptional<z.ZodString>;
|
|
401
|
-
question_what_brings_you_body: z.ZodOptional<z.ZodString>;
|
|
402
|
-
question_what_brings_you_option_1: z.ZodOptional<z.ZodString>;
|
|
403
|
-
question_what_brings_you_option_2: z.ZodOptional<z.ZodString>;
|
|
404
|
-
question_what_brings_you_option_3: z.ZodOptional<z.ZodString>;
|
|
405
|
-
question_what_brings_you_option_4: z.ZodOptional<z.ZodString>;
|
|
406
376
|
}, z.core.$strip>;
|
|
407
377
|
export type LanguageTranslationsApp = z.infer<typeof LanguageTranslationsApp>;
|
|
408
378
|
export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -713,11 +683,9 @@ export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
713
683
|
article: z.ZodString;
|
|
714
684
|
no_results: z.ZodString;
|
|
715
685
|
no_notes: z.ZodString;
|
|
716
|
-
not_yet: z.ZodString;
|
|
717
686
|
micro_lesson: z.ZodString;
|
|
718
687
|
micro_lessons: z.ZodString;
|
|
719
688
|
filter_micro_lessons: z.ZodString;
|
|
720
|
-
question_placeholder: z.ZodString;
|
|
721
689
|
no_text_available: z.ZodString;
|
|
722
690
|
share_story_audio: z.ZodString;
|
|
723
691
|
read_along: z.ZodString;
|
|
@@ -762,21 +730,7 @@ export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
762
730
|
some: z.ZodOptional<z.ZodString>;
|
|
763
731
|
none: z.ZodOptional<z.ZodString>;
|
|
764
732
|
highlight_verse: z.ZodOptional<z.ZodString>;
|
|
765
|
-
join_others_discovering: z.ZodOptional<z.ZodString>;
|
|
766
733
|
people_shared_last_week: z.ZodOptional<z.ZodString>;
|
|
767
|
-
onboarding_dbs_intro_heading: z.ZodOptional<z.ZodString>;
|
|
768
|
-
onboarding_dbs_intro_body: z.ZodOptional<z.ZodString>;
|
|
769
|
-
onboarding_invite_group_heading: z.ZodOptional<z.ZodString>;
|
|
770
|
-
onboarding_invite_group_body: z.ZodOptional<z.ZodString>;
|
|
771
|
-
popups_need_help_with_group_title: z.ZodOptional<z.ZodString>;
|
|
772
|
-
popups_need_help_with_group_message: z.ZodOptional<z.ZodString>;
|
|
773
734
|
popups_micro_lessons_banner: z.ZodOptional<z.ZodString>;
|
|
774
|
-
question_in_a_group: z.ZodOptional<z.ZodString>;
|
|
775
|
-
question_what_brings_you_question: z.ZodOptional<z.ZodString>;
|
|
776
|
-
question_what_brings_you_body: z.ZodOptional<z.ZodString>;
|
|
777
|
-
question_what_brings_you_option_1: z.ZodOptional<z.ZodString>;
|
|
778
|
-
question_what_brings_you_option_2: z.ZodOptional<z.ZodString>;
|
|
779
|
-
question_what_brings_you_option_3: z.ZodOptional<z.ZodString>;
|
|
780
|
-
question_what_brings_you_option_4: z.ZodOptional<z.ZodString>;
|
|
781
735
|
}, z.core.$strip>>;
|
|
782
736
|
export type TranslationsApp = z.infer<typeof TranslationsApp>;
|
|
@@ -19,23 +19,10 @@ exports.TrickyStrings = zod_1.z
|
|
|
19
19
|
none: zod_1.z.string(),
|
|
20
20
|
// Verse highlighting
|
|
21
21
|
highlight_verse: zod_1.z.string(),
|
|
22
|
-
//
|
|
23
|
-
join_others_discovering: zod_1.z.string(),
|
|
22
|
+
// Sharing social proof
|
|
24
23
|
people_shared_last_week: zod_1.z.string(),
|
|
25
|
-
|
|
26
|
-
onboarding_dbs_intro_body: zod_1.z.string(),
|
|
27
|
-
onboarding_invite_group_heading: zod_1.z.string(),
|
|
28
|
-
onboarding_invite_group_body: zod_1.z.string(),
|
|
29
|
-
popups_need_help_with_group_title: zod_1.z.string(),
|
|
30
|
-
popups_need_help_with_group_message: zod_1.z.string(),
|
|
24
|
+
// Micro lessons
|
|
31
25
|
popups_micro_lessons_banner: zod_1.z.string(),
|
|
32
|
-
question_in_a_group: zod_1.z.string(),
|
|
33
|
-
question_what_brings_you_question: zod_1.z.string(),
|
|
34
|
-
question_what_brings_you_body: zod_1.z.string(),
|
|
35
|
-
question_what_brings_you_option_1: zod_1.z.string(),
|
|
36
|
-
question_what_brings_you_option_2: zod_1.z.string(),
|
|
37
|
-
question_what_brings_you_option_3: zod_1.z.string(),
|
|
38
|
-
question_what_brings_you_option_4: zod_1.z.string(),
|
|
39
26
|
})
|
|
40
27
|
.partial();
|
|
41
28
|
exports.LanguageTranslationsApp = zod_1.z.object({
|
|
@@ -349,11 +336,9 @@ exports.LanguageTranslationsApp = zod_1.z.object({
|
|
|
349
336
|
article: zod_1.z.string().min(1),
|
|
350
337
|
no_results: zod_1.z.string().min(1),
|
|
351
338
|
no_notes: zod_1.z.string().min(1),
|
|
352
|
-
not_yet: zod_1.z.string().min(1),
|
|
353
339
|
micro_lesson: zod_1.z.string().min(1),
|
|
354
340
|
micro_lessons: zod_1.z.string().min(1),
|
|
355
341
|
filter_micro_lessons: zod_1.z.string().min(1),
|
|
356
|
-
question_placeholder: zod_1.z.string().min(1),
|
|
357
342
|
no_text_available: zod_1.z.string(),
|
|
358
343
|
// ---
|
|
359
344
|
// Auth feature
|
|
@@ -52,9 +52,9 @@ function crowdinRelativePath(absolutePath) {
|
|
|
52
52
|
*/
|
|
53
53
|
function downloadTranslations({ projectId, translationsFolder, token, sourcePattern = '*.json', }) {
|
|
54
54
|
(0, node_child_process_1.spawnSync)([
|
|
55
|
-
'
|
|
55
|
+
'crowdin download translations',
|
|
56
56
|
`-i ${projectId}`,
|
|
57
|
-
`-s eng/${sourcePattern}`,
|
|
57
|
+
`-s "eng/${sourcePattern}"`,
|
|
58
58
|
// Add Crowdin token present in .env file.
|
|
59
59
|
`-T ${token}`,
|
|
60
60
|
// Set the base path for which the other paths will be relative to.
|
|
@@ -18,7 +18,10 @@ export declare const SubscribeDripBody: z.ZodObject<{
|
|
|
18
18
|
drip_believer: "drip_believer";
|
|
19
19
|
drip_seeker: "drip_seeker";
|
|
20
20
|
}>;
|
|
21
|
-
languageId: z.
|
|
21
|
+
languageId: z.ZodEnum<{
|
|
22
|
+
eng: "eng";
|
|
23
|
+
ara: "ara";
|
|
24
|
+
swe: "swe";
|
|
25
|
+
}>;
|
|
22
26
|
firstName: z.ZodOptional<z.ZodString>;
|
|
23
27
|
}, z.core.$strip>;
|
|
24
|
-
export type SubscribeDripBody = z.infer<typeof SubscribeDripBody>;
|
|
@@ -12,6 +12,6 @@ exports.DRIP_LANGUAGES = ['eng', 'ara', 'swe'];
|
|
|
12
12
|
exports.DripLanguageId = zod_1.default.enum(exports.DRIP_LANGUAGES);
|
|
13
13
|
exports.SubscribeDripBody = zod_1.default.object({
|
|
14
14
|
sequence: exports.DripSequenceId,
|
|
15
|
-
languageId:
|
|
15
|
+
languageId: exports.DripLanguageId,
|
|
16
16
|
firstName: zod_1.default.string().optional(),
|
|
17
17
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waha-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.482",
|
|
4
4
|
"author": "Waha",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@types/signale": "^1.4.7",
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"description": "Shared assets for Waha's various apps",
|
|
15
15
|
"devDependencies": {
|
|
16
|
+
"@crowdin/crowdin-api-client": "^1.57.0",
|
|
17
|
+
"@types/react": "^19.3.0",
|
|
16
18
|
"copyfiles": "^2.4.1",
|
|
17
|
-
"
|
|
19
|
+
"react": "^19.3.0",
|
|
20
|
+
"typescript": "~5.9.2",
|
|
21
|
+
"zod": "^4.6.5"
|
|
18
22
|
},
|
|
19
23
|
"files": [
|
|
20
24
|
"dist",
|