Skip to content

Commit d1b5c68

Browse files
committed
feature : add Norwegian.json
1 parent 96ce132 commit d1b5c68

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010

1111
- Added the ability to specify the Gemini model when using the AI Tutor GitHub Action. A new `model` input has been added to the action, allowing users to select different Gemini models. The default model remains `gemini-1.5-flash-latest` for backward compatibility.
12-
12+
- Added Norwegian support
1313

1414
### Changed
1515

locale/Norwegian.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"directive": "Forklar årsaken til feilen i koden som ble sendt inn som lekser, på en enkel måte uten å gjenta deg selv.",
3+
"report_header": "Feilmelding starter",
4+
"report_footer": "Feilmelding slutter",
5+
"instruction_start": "Oppgaveinstruksjon starter",
6+
"instruction_end": "Oppgaveinstruksjon slutter",
7+
"homework_start": "Innlevering av lekser starter",
8+
"homework_end": "Innlevering av lekser slutter"
9+
}

tests/test_ai_tutor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def homework(explanation_in:str) -> Tuple[str]:
9292
'Italian': ('Compito', 'Compiti'),
9393
'Japanese': ('宿題',),
9494
'Nederlands': ('Huiswerk',),
95+
'Norwegian': ('Hjemmelekse', 'lekser'),
9596
'Spanish': ('Tarea',),
9697
'Swedish': ('Läxa',),
9798
'Thai': ('การบ้าน',),
@@ -117,6 +118,7 @@ def msg(explanation_in:str) -> str:
117118
'Italian': 'Messaggio',
118119
'Japanese': 'メッセ',
119120
'Nederlands': 'Foutmelding', # error message
121+
'Norwegian': 'Melding',
120122
'Spanish': 'Mensaje',
121123
'Swedish': 'Meddelande',
122124
'Thai': 'ข้อความ',
@@ -137,6 +139,7 @@ def instruction(explanation_in:str) -> str:
137139
'Italian': ('istruzione',),
138140
'Japanese': ('指示',),
139141
'Nederlands': ('instructie',),
142+
'Norwegian': ('instruksjon',),
140143
'Spanish': ('instrucción',),
141144
'Swedish': ('instruktion',),
142145
'Thai': ('แนะนำ',),

0 commit comments

Comments
 (0)