Skip to content

Commit 193625c

Browse files
Use lowercase words as variables
1 parent dd7a6e6 commit 193625c

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

i18n/oceans.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"fishshort-words-init2": "Let’s teach A.I. a new word by showing it examples of that type of fish.",
3636
"fishshort-words-training-pause1": "Do you think A.I. has enough training data? You can click Continue to find out.",
3737
"fishshort-words-training-pause2": "Great work! Keep training A.I. or continue when ready.",
38-
"fishshort-predicting-init1": "With your training data, you have programmed A.I. to recognize “{WORD}” fish.",
39-
"fishshort-predicting-init2": "Let's see A.I. identify “{WORD}” fish.",
40-
"fishshort-pond-init1": "Based on your training, A.I. identified {N, plural,one {this} other {these}} fish as “{WORD}”. How did A.I. do? You can Train More if you want to improve the results.",
38+
"fishshort-predicting-init1": "With your training data, you have programmed A.I. to recognize “{word}” fish.",
39+
"fishshort-predicting-init2": "Let's see A.I. identify “{word}” fish.",
40+
"fishshort-pond-init1": "Based on your training, A.I. identified {n, plural,one {this} other {these}} fish as “{word}”. How did A.I. do? You can Train More if you want to improve the results.",
4141
"fishshort-pond-init2": "Click on the info button to see what A.I. learned.",
4242
"fishlong-words-init1": "Now let’s see if A.I. can learn a less obvious word.",
4343
"fishlong-words-init2": "Let’s teach A.I. a word that depends on your opinion. It is up to you to pick fish that match your word.",
@@ -46,9 +46,9 @@
4646
"fishlong-training-pause3": "Each choice you make can help A.I. learn. Keep training.",
4747
"fishlong-training-pause4": "Do you think A.I. has enough training data? A.I. will do better with a lot of data. Continue when you think A.I. is ready.",
4848
"fishlong-training-many": "Wow. That's a lot of fish!",
49-
"fishlong-predicting-init1": "With your training data, you have programmed A.I. to recognize “{WORD}” fish.",
50-
"fishlong-predicting-init2": "Let’s see A.I. identify “{WORD}” fish.",
51-
"fishlong-pond-init1": "Based on your training, A.I. identified {N, plural,one {this} other {these}} fish as “{WORD}”. How did A.I. do?",
49+
"fishlong-predicting-init1": "With your training data, you have programmed A.I. to recognize “{word}” fish.",
50+
"fishlong-predicting-init2": "Let’s see A.I. identify “{word}” fish.",
51+
"fishlong-pond-init1": "Based on your training, A.I. identified {n, plural,one {this} other {these}} fish as “{word}”. How did A.I. do?",
5252
"fishlong-pond-init2": "You can Train More if you want to improve the results.",
5353
"fishlong-pond-init3": "Or you can teach A.I. a new word by choosing New Word.",
5454
"didYouKnow": "Did you know?",
@@ -59,7 +59,7 @@
5959
"cancel": "Cancel",
6060
"yes": "Yes",
6161
"no": "No",
62-
"notWord": "Not {WORD}",
62+
"notWord": "Not {word}",
6363
"run": "Run",
6464
"mostImportantParts": "These were the most important fish parts:",
6565
"clickIndividualFish": "Click individual fish to see their information.",
@@ -70,7 +70,7 @@
7070
"trainMore": "Train More",
7171
"wordQuestionShort": "What type of fish do you want to train A.I. to detect?",
7272
"wordQuestionLong": "Choose a new word to teach A.I.",
73-
"isThisFish": "Is this fish {WORD}?",
73+
"isThisFish": "Is this fish {word}?",
7474
"isThisAFish": "Is this a fish?",
7575
"doesThisBelongInWater": "Does this belong in the water?",
7676
"fish": "Fish",

src/oceans/models/guide.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const guides = [
399399
id: 'fishshort-predicting-init1',
400400
textFn: state => {
401401
return I18n.t('fishshort-predicting-init1', {
402-
WORD: state.word.toLowerCase()
402+
word: state.word.toLowerCase()
403403
});
404404
},
405405
when: {appMode: AppMode.FishShort, currentMode: Modes.Predicting}
@@ -408,7 +408,7 @@ const guides = [
408408
id: 'fishshort-predicting-init2',
409409
textFn: state => {
410410
return I18n.t('fishshort-predicting-init2', {
411-
WORD: state.word.toLowerCase()
411+
word: state.word.toLowerCase()
412412
});
413413
},
414414
when: {appMode: AppMode.FishShort, currentMode: Modes.Predicting}
@@ -417,8 +417,8 @@ const guides = [
417417
id: 'fishshort-pond-init1',
418418
textFn: state => {
419419
return I18n.t('fishshort-pond-init1', {
420-
N: state.fishData.length,
421-
WORD: state.word.toLowerCase()
420+
n: state.fishData.length,
421+
word: state.word.toLowerCase()
422422
});
423423

424424
},
@@ -521,7 +521,7 @@ const guides = [
521521
id: 'fishlong-predicting-init1',
522522
textFn: state => {
523523
return I18n.t('fishlong-predicting-init1', {
524-
WORD: state.word.toLowerCase()
524+
word: state.word.toLowerCase()
525525
});
526526
},
527527
when: {appMode: AppMode.FishLong, currentMode: Modes.Predicting}
@@ -530,7 +530,7 @@ const guides = [
530530
id: 'fishlong-predicting-init2',
531531
textFn: state => {
532532
return I18n.t('fishlong-predicting-init2', {
533-
WORD: state.word.toLowerCase()
533+
word: state.word.toLowerCase()
534534
});
535535
},
536536
when: {appMode: AppMode.FishLong, currentMode: Modes.Predicting}
@@ -539,8 +539,8 @@ const guides = [
539539
id: 'fishlong-pond-init1',
540540
textFn: state => {
541541
return I18n.t('fishlong-pond-init1', {
542-
N: state.fishData.length,
543-
WORD: state.word.toLowerCase()
542+
n: state.fishData.length,
543+
word: state.word.toLowerCase()
544544
});
545545
},
546546
when: {

src/oceans/ui.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ let UnwrappedWords = class Words extends React.Component {
828828
const word = I18n.t(wordKey);
829829
setState({
830830
word,
831-
trainingQuestion: I18n.t('isThisFish', {WORD: word.toLowerCase()})
831+
trainingQuestion: I18n.t('isThisFish', {word: word.toLowerCase()})
832832
});
833833
modeHelpers.toMode(Modes.Training);
834834

@@ -883,7 +883,7 @@ let UnwrappedTrain = class Train extends React.Component {
883883
const noButtonText =
884884
state.appMode === AppMode.CreaturesVTrash
885885
? I18n.t('no')
886-
: I18n.t('notWord', {WORD: state.word});
886+
: I18n.t('notWord', {word: state.word});
887887
const resetTrainingFunction = () => {
888888
helpers.resetTraining(state);
889889
setState({showConfirmationDialog: false});
@@ -1183,7 +1183,7 @@ class PondPanel extends React.Component {
11831183
{'”'} {I18n.t('or')}
11841184
{' “'}
11851185
<span style={{color: colors.red}}>
1186-
{I18n.t('notWord', {WORD: state.word}).toLowerCase()}
1186+
{I18n.t('notWord', {word: state.word}).toLowerCase()}
11871187
</span>
11881188
{'”'}.
11891189
</div>

0 commit comments

Comments
 (0)