waha-shared 1.0.27 → 1.0.28
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.
|
@@ -24,9 +24,11 @@ const questionsCurriculums_1 = require("../data/questionsCurriculums");
|
|
|
24
24
|
const specialIds_1 = require("../data/specialIds");
|
|
25
25
|
const topicsCurriculums_1 = require("../data/topicsCurriculums");
|
|
26
26
|
const appTranslations_1 = __importDefault(require("../translations/appTranslations"));
|
|
27
|
+
const ftbTranslations_1 = __importDefault(require("../translations/ftbTranslations"));
|
|
27
28
|
const introductionTranslations_1 = __importDefault(require("../translations/introductionTranslations"));
|
|
28
29
|
const questionTranslations_1 = __importDefault(require("../translations/questionTranslations"));
|
|
29
30
|
const setTranslations_1 = __importDefault(require("../translations/setTranslations"));
|
|
31
|
+
const spokenQuestionTranslations_1 = __importDefault(require("../translations/spokenQuestionTranslations"));
|
|
30
32
|
const bibleChapterUtils_1 = require("./bibleChapterUtils");
|
|
31
33
|
function getBibleInfo(bibleId) {
|
|
32
34
|
const bibleText = bibleTexts_1.bibleTexts.find((t) => t.bibleTextId === bibleId);
|
|
@@ -206,6 +208,9 @@ function getMeetTranslations(meetLanguageInfo) {
|
|
|
206
208
|
setTranslations_1.default.eng,
|
|
207
209
|
questions: questionTranslations_1.default[meetLanguageInfo.languageId] ??
|
|
208
210
|
questionTranslations_1.default.eng,
|
|
211
|
+
questionsSpoken: spokenQuestionTranslations_1.default[meetLanguageInfo.languageId] ??
|
|
212
|
+
spokenQuestionTranslations_1.default.eng,
|
|
213
|
+
ftbs: ftbTranslations_1.default[meetLanguageInfo.languageId] ?? ftbTranslations_1.default.eng,
|
|
209
214
|
introductions: introductionTranslations_1.default[meetLanguageInfo.introBridge ??
|
|
210
215
|
meetLanguageInfo.titles ??
|
|
211
216
|
meetLanguageInfo.languageId] ?? introductionTranslations_1.default.eng,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { BibleAudios } from '../data/typescript/bibleAudios';
|
|
2
2
|
import type { BibleTexts } from '../data/typescript/bibleTexts';
|
|
3
|
+
import type { FtbTranslations } from '../data/typescript/ftbTranslations';
|
|
3
4
|
import type { IntroductionTranslations } from '../data/typescript/introductionTranslations';
|
|
4
5
|
import type { Languages } from '../data/typescript/languages';
|
|
5
6
|
import type { QuestionsCurriculums } from '../data/typescript/questionsCurriculums';
|
|
6
7
|
import type { QuestionTranslations } from '../data/typescript/questionTranslations';
|
|
7
8
|
import type { SetTranslations } from '../data/typescript/setTranslations';
|
|
9
|
+
import type { SpokenQuestionTranslations } from '../data/typescript/spokenQuestionTranslations';
|
|
8
10
|
type Language = Languages[number];
|
|
9
11
|
type BibleText = BibleTexts[number];
|
|
10
12
|
type BibleAudio = BibleAudios[number];
|
|
@@ -26,6 +28,8 @@ export interface LanguageInfo extends Omit<Language, 'bible' | 'bibleFallback'>
|
|
|
26
28
|
export interface MeetTranslations {
|
|
27
29
|
sets: SetTranslations[string];
|
|
28
30
|
questions: QuestionTranslations[string];
|
|
31
|
+
questionsSpoken: SpokenQuestionTranslations[string];
|
|
32
|
+
ftbs: FtbTranslations[string];
|
|
29
33
|
introductions: IntroductionTranslations[string];
|
|
30
34
|
}
|
|
31
35
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waha-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"author": "Waha",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@types/signale": "^1.4.7",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
],
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"update": "npx tsc && git add . && git commit -m 'Update shared types' &&
|
|
20
|
+
"update": "npx tsc && npm version patch && git add . && git commit -m 'Update shared types' && bash -c 'npm publish --access public --registry https://registry.npmjs.org --//registry.npmjs.org/:_authToken=$(grep NODE_AUTH_TOKEN= ../.env | cut -d \"=\" -f2-)'"
|
|
21
21
|
}
|
|
22
22
|
}
|