Skip to content

Commit 39e6bb5

Browse files
committed
fix
1 parent 3660cd6 commit 39e6bb5

8 files changed

Lines changed: 41 additions & 38 deletions

File tree

meteor/i18n/en.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2026-04-14T13:38:45.409Z\n"
9-
"PO-Revision-Date: 2026-04-14T13:38:45.409Z\n"
10-
"Language: i18n\n"
8+
"POT-Creation-Date: 2026-04-14T14:17:21.116Z\n"
9+
"PO-Revision-Date: 2026-04-14T14:17:21.116Z\n"
10+
"Language: en\n"
1111

1212
msgid " The index of the Atem media/clip banks"
1313
msgstr ""
@@ -2412,10 +2412,10 @@ msgstr ""
24122412
msgid "NRCS Name"
24132413
msgstr ""
24142414

2415-
msgid "OAuth credentials successfully uploaded."
2415+
msgid "OAuth credentials successfully reset"
24162416
msgstr ""
24172417

2418-
msgid "OAuth credentials successfully reset"
2418+
msgid "OAuth credentials successfully uploaded."
24192419
msgstr ""
24202420

24212421
msgid "Off"

meteor/i18n/nb.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2026-04-14T13:38:45.442Z\n"
9-
"PO-Revision-Date: 2026-04-14T13:38:45.442Z\n"
10-
"Language: i18n\n"
8+
"POT-Creation-Date: 2026-04-14T14:17:21.170Z\n"
9+
"PO-Revision-Date: 2026-04-14T14:17:21.170Z\n"
10+
"Language: nb\n"
1111

1212
msgid " The index of the Atem media/clip banks"
1313
msgstr ""
@@ -784,7 +784,7 @@ msgid "Cancel"
784784
msgstr "Avbryt"
785785

786786
msgid "Cancel currently pressed hotkey"
787-
msgstr ""
787+
msgstr "Avbryt den trykte tasten"
788788

789789
msgid "Cannot activate HOLD before a part has been taken!"
790790
msgstr ""
@@ -832,7 +832,7 @@ msgid "Center"
832832
msgstr ""
833833

834834
msgid "Change to fullscreen mode"
835-
msgstr ""
835+
msgstr "Fullskjermmodus"
836836

837837
msgid "Channel Name"
838838
msgstr "Kanalnavn"
@@ -2465,11 +2465,11 @@ msgstr ""
24652465
msgid "NRCS Name"
24662466
msgstr ""
24672467

2468-
msgid "OAuth credentials successfully uploaded."
2469-
msgstr "Opplasting av OAuth credentials var vellykket."
2470-
24712468
msgid "OAuth credentials successfully reset"
2472-
msgstr "OAuth credentials nullstilt"
2469+
msgstr ""
2470+
2471+
msgid "OAuth credentials successfully uploaded."
2472+
msgstr ""
24732473

24742474
msgid "Off"
24752475
msgstr "Av"
@@ -4239,7 +4239,7 @@ msgid "Trim \"{{name}}\""
42394239
msgstr "Trim \"{{name}}\""
42404240

42414241
msgid "Trimmed successfully."
4242-
msgstr "Endring av inn-/utpunkt var vellykket."
4242+
msgstr ""
42434243

42444244
msgid "Trimming this clip has failed due to an error: {{error}}."
42454245
msgstr "Endring av inn-/utpunkt for dette klippet feilet: {{error}}."

meteor/i18n/nn.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2026-04-14T13:38:45.457Z\n"
9-
"PO-Revision-Date: 2026-04-14T13:38:45.457Z\n"
10-
"Language: i18n\n"
8+
"POT-Creation-Date: 2026-04-14T14:17:21.139Z\n"
9+
"PO-Revision-Date: 2026-04-14T14:17:21.139Z\n"
10+
"Language: nn\n"
1111

1212
msgid " The index of the Atem media/clip banks"
1313
msgstr ""
@@ -783,7 +783,7 @@ msgid "Cancel"
783783
msgstr "Avbryt"
784784

785785
msgid "Cancel currently pressed hotkey"
786-
msgstr ""
786+
msgstr "Avbryt den trykte tasten"
787787

788788
msgid "Cannot activate HOLD before a part has been taken!"
789789
msgstr ""
@@ -831,7 +831,7 @@ msgid "Center"
831831
msgstr ""
832832

833833
msgid "Change to fullscreen mode"
834-
msgstr ""
834+
msgstr "Fullskjermmodus"
835835

836836
msgid "Channel Name"
837837
msgstr "Kanalnavn"
@@ -2464,11 +2464,11 @@ msgstr ""
24642464
msgid "NRCS Name"
24652465
msgstr ""
24662466

2467-
msgid "OAuth credentials successfully uploaded."
2468-
msgstr "Opplasting av OAuth credentials var vellukka."
2469-
24702467
msgid "OAuth credentials successfully reset"
2471-
msgstr "OAuth credentials nullstilt."
2468+
msgstr ""
2469+
2470+
msgid "OAuth credentials successfully uploaded."
2471+
msgstr ""
24722472

24732473
msgid "Off"
24742474
msgstr "Av"
@@ -4237,7 +4237,7 @@ msgid "Trim \"{{name}}\""
42374237
msgstr "Trim \"{{name}}\""
42384238

42394239
msgid "Trimmed successfully."
4240-
msgstr "Endring av inn-/utpunkt var vellukka."
4240+
msgstr ""
42414241

42424242
msgid "Trimming this clip has failed due to an error: {{error}}."
42434243
msgstr "Endring av inn-/utpunkt for dette klippet feila: {{error}}."

meteor/i18n/sv.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2026-04-14T13:38:45.424Z\n"
9-
"PO-Revision-Date: 2026-04-14T13:38:45.424Z\n"
10-
"Language: i18n\n"
8+
"POT-Creation-Date: 2026-04-14T14:17:21.154Z\n"
9+
"PO-Revision-Date: 2026-04-14T14:17:21.154Z\n"
10+
"Language: sv\n"
1111

1212
msgid " The index of the Atem media/clip banks"
1313
msgstr ""
@@ -2412,10 +2412,10 @@ msgstr ""
24122412
msgid "NRCS Name"
24132413
msgstr ""
24142414

2415-
msgid "OAuth credentials successfully uploaded."
2415+
msgid "OAuth credentials successfully reset"
24162416
msgstr ""
24172417

2418-
msgid "OAuth credentials successfully reset"
2418+
msgid "OAuth credentials successfully uploaded."
24192419
msgstr ""
24202420

24212421
msgid "Off"

meteor/scripts/translation/extract.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ function jsonToPoPlugin(_translationNamespace, extractionStats) {
6565
async afterSync(results) {
6666
await Promise.all(
6767
results.map(async (result) => {
68-
const language = result.path.split(/[/\\]/).at(-2)
68+
const language = result.path
69+
.split(/[/\\]/)
70+
.at(-1)
71+
.replace(/\.json$/, '')
6972
const poPath = result.path.replace(/\.json$/, '.po')
7073

74+
console.log('lang', language)
75+
7176
// Load existing translations from the .po file if it exists
7277
let existingTranslations = {}
7378
try {

packages/webui/public/locales/nb/translations.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,12 @@
135135
"Button width scale factor": "Breddeskala for knapp",
136136
"Camera": "Kamera",
137137
"Cancel": "Avbryt",
138+
"Cancel currently pressed hotkey": "Avbryt den trykte tasten",
138139
"Cannot play this AdLib because it is marked as Floated": "Kan ikke spille av adlib fordi den er markert som på vent (float)",
139140
"Cannot play this AdLib because it is marked as Invalid": "Kan ikke spille av adlib fordi den er markert som ugyldig",
140141
"Cannot play this adlib because source layer is not queueable": "Kan ikke spille av adlib fordi den ikke kan settes i kø på kildelaget",
141142
"CasparCG on device \"{{deviceName}}\" restarting...": "CasparCG på \"{{deviceName}}\" starter på nytt...",
143+
"Change to fullscreen mode": "Fullskjermmodus",
142144
"Channel Name": "Kanalnavn",
143145
"Check the console for troubleshooting data from device \"{{deviceName}}\"!": "Sjekk konsollen for feilsøkingsdata fra enheten \"{{deviceName}}\"!",
144146
"Cleanup": "Opprydding",
@@ -417,8 +419,6 @@
417419
"Not queueable": "Kan ikke settes i kø",
418420
"Not set": "Ikke angitt",
419421
"Note: Core needs to be restarted to apply these settings": "Merknad: Core må startes på nytt for å ta i bruk disse innstillingene",
420-
"OAuth credentials successfully uploaded.": "Opplasting av OAuth credentials var vellykket.",
421-
"OAuth credentials successfully reset": "OAuth credentials nullstilt",
422422
"Off": "Av",
423423
"Off-line devices": "Frakoblede enheter",
424424
"OK": "OK",
@@ -727,7 +727,6 @@
727727
"Triggered Actions failed to upload: {{errorMessage}}": "Opplasting av handlingsutløsere feilet: {{errorMessage}}",
728728
"Triggered Actions uploaded successfully.": "Opplasting av handlingsutløsere var vellykket.",
729729
"Trim \"{{name}}\"": "Trim \"{{name}}\"",
730-
"Trimmed successfully.": "Endring av inn-/utpunkt var vellykket.",
731730
"Trimming this clip has failed due to an error: {{error}}.": "Endring av inn-/utpunkt for dette klippet feilet: {{error}}.",
732731
"Trimming this clip has timed out. It's possible that the story is currently locked for writing in {{nrcsName}} and will eventually be updated. Make sure that the story is not being edited by other users.": "Endring av inn-/utpunkt for dette klippet tar lang tid. Det er mulig manuset i er låst i {{nrcsName}} og at inn-/utpunkt endres om litt. Forsikre deg om at manuset ikke blir redigert av andre brukere.",
733732
"Trimming this clip is taking longer than expected. It's possible that the story is locked for writing in {{nrcsName}}.": "Endring av inn-/utpunkt for dette klippet tek meir tid enn forventa. Det er mogleg manuset er låst for redigering i {{nrcsName}}.",

packages/webui/public/locales/nn/translations.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,12 @@
134134
"Button width scale factor": "Breiddeskala for knapp",
135135
"Camera": "Kamera",
136136
"Cancel": "Avbryt",
137+
"Cancel currently pressed hotkey": "Avbryt den trykte tasten",
137138
"Cannot play this AdLib because it is marked as Floated": "Kan ikkje spele av adlib fordi den er markert som på vent (float)",
138139
"Cannot play this AdLib because it is marked as Invalid": "Kan ikkje spele av adlib fordi den er markert som ugyldig",
139140
"Cannot play this adlib because source layer is not queueable": "Kan ikkje spele av adlib fordi den ikkje kan setjast i kø på kjeldelaget",
140141
"CasparCG on device \"{{deviceName}}\" restarting...": "CasparCG på \"{{deviceName}}\" startar på nytt...",
142+
"Change to fullscreen mode": "Fullskjermmodus",
141143
"Channel Name": "Kanalnavn",
142144
"Check the console for troubleshooting data from device \"{{deviceName}}\"!": "Sjekk konsollen for feilsøkingsdata frå eninga \"{{deviceName}}\"!",
143145
"Cleanup": "Opprydding",
@@ -415,8 +417,6 @@
415417
"Not queueable": "Kan ikkje setjast i kø",
416418
"Not set": "Ikkje angjeve",
417419
"Note: Core needs to be restarted to apply these settings": "Merknad: Core må startast om att for å ta i bruk desse innstillingane",
418-
"OAuth credentials successfully uploaded.": "Opplasting av OAuth credentials var vellukka.",
419-
"OAuth credentials successfully reset": "OAuth credentials nullstilt.",
420420
"Off": "Av",
421421
"Off-line devices": "Fråkoplete einingar",
422422
"OK": "OK",
@@ -726,7 +726,6 @@
726726
"Triggered Actions failed to upload: {{errorMessage}}": "Opplasting av handlingsutløysarar feila: {{errorMessage}}",
727727
"Triggered Actions uploaded successfully.": "Opplasting av handlingsutløysarar var vellukka.",
728728
"Trim \"{{name}}\"": "Trim \"{{name}}\"",
729-
"Trimmed successfully.": "Endring av inn-/utpunkt var vellukka.",
730729
"Trimming this clip has failed due to an error: {{error}}.": "Endring av inn-/utpunkt for dette klippet feila: {{error}}.",
731730
"Trimming this clip has timed out. It's possible that the story is currently locked for writing in {{nrcsName}} and will eventually be updated. Make sure that the story is not being edited by other users.": "Endring av inn-/utpunkt for dette klippet tek lang tid. Det er mogleg manuset i er låst i {{nrcsName}} og at inn-/utpunkt endrast om litt. Forsikre deg om at manuset ikkje vert redigert av andre brukarar.",
732731
"Trimming this clip is taking longer than expected. It's possible that the story is locked for writing in {{nrcsName}}.": "Endring av inn-/utpunkt for dette klippet tek meir tid enn forventa. Det er mogleg manuset er låst for redigering i {{nrcsName}}.",

packages/webui/src/client/ui/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class I18nContainer extends WithManagedTracker {
149149
}
150150

151151
const container = new I18nContainer()
152-
const i18nTranslator: TFunction = container.i18nInstance.t
152+
const i18nTranslator: TFunction = ((key: unknown, ...args: any[]) => container.i18nTranslator(key, ...args)) as any
153153

154154
export { i18nTranslator }
155155

0 commit comments

Comments
 (0)