-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathTutorialChapterContent.swift
More file actions
95 lines (88 loc) · 4.09 KB
/
Copy pathTutorialChapterContent.swift
File metadata and controls
95 lines (88 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// SPDX-License-Identifier: GPL-3.0-or-later
/**
* Content definitions for each tutorial chapter.
* Noun annotation has two steps (Vater → Mutter).
* Other chapters are single-step.
*/
import Foundation
private let languageNote = NSLocalizedString(
"i18n.app.tutorial.language_note",
value: "If your second language is not German, change the language in your keyboard.",
comment: ""
)
extension TutorialChapter {
var steps: [TutorialStep] {
switch self {
case .nounAnnotation:
return [
TutorialStep(
instructions: NSLocalizedString(
"i18n.app.tutorial.noun_annotation.step1",
value: "Write the word \"Vater\". Notice the word suggestions that appear on the keyboard's top bar.\n\nThen, press space. You will see the word's gender tag on the keyboard's top bar — in this case, \"M\" for Maskulin.",
comment: ""
),
languageNote: languageNote,
expectedInput: "Vater",
incorrectFeedback: NSLocalizedString(
"i18n.app.tutorial.noun_annotation.step1.incorrect",
value: "Not quite! Try writing Vater.",
comment: ""
)
),
TutorialStep(
instructions: NSLocalizedString(
"i18n.app.tutorial.noun_annotation.step2",
value: "Now write the word \"Mutter\" and then press space. The gender tag will be \"F\", for Feminin.",
comment: ""
),
languageNote: languageNote,
expectedInput: "Mutter",
incorrectFeedback: NSLocalizedString(
"i18n.app.tutorial.noun_annotation.step2.incorrect",
value: "Not quite! Try writing Mutter.",
comment: ""
)
)
]
case .wordTranslation:
return [
TutorialStep(
instructions: NSLocalizedString(
"i18n.app.tutorial.word_translation.instructions",
value: "Let's translate! Tap the ⌨ Scribe key on the top-left corner of your keyboard, and select Übersetzen.\n\nThen write the word you want to translate, press ▶, and the translation will be returned to you.",
comment: ""
),
languageNote: languageNote,
expectedInput: nil,
incorrectFeedback: ""
)
]
case .verbConjugation:
return [
TutorialStep(
instructions: NSLocalizedString(
"i18n.app.tutorial.verb_conjugation.instructions",
value: "On to the verbs. Tap the ⌨ Scribe key on the top-left corner of your keyboard, and select Konjugieren.\n\nWrite the verb you want to conjugate, press ▶, and you will see a table with all the verb tenses. Select the one you need and it will be inserted!",
comment: ""
),
languageNote: languageNote,
expectedInput: nil,
incorrectFeedback: ""
)
]
case .nounPlurals:
return [
TutorialStep(
instructions: NSLocalizedString(
"i18n.app.tutorial.noun_plurals.instructions",
value: "Finding the plural of a noun with Scribe is easy. Tap the ⌨ Scribe key on the top-left corner of your keyboard, and select Plural.\n\nThen write the noun you want the plural for, press ▶, and the plural will be returned to you.",
comment: ""
),
languageNote: languageNote,
expectedInput: nil,
incorrectFeedback: ""
)
]
}
}
}