Skip to content

Commit

Permalink
fix: translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Nov 15, 2024
1 parent 163e746 commit 65824d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/inventory/Inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export default function Inventory({ locked }: { locked: boolean }) {
const isErrorMessageStringUndefined =
errorMessageString === 'undefined';
setCreateSrtError(
'There was an error creating the SRT source ' +
(isErrorMessageStringUndefined ? '' : errorMessageString)
t('inventory_list.generic_error') +
(isErrorMessageStringUndefined ? '' : ': ' + errorMessageString)
);
});
};
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ export const en = {
port_already_in_use_error:
'There is already a SRT source with this port. Choose a different port.',
passphrase_error: 'The passphrase needs to be between 10 and 79 characters',
generic_error: 'There was an error creating the SRT source',
cancel: 'Cancel'
},
clear: 'Clear',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ export const sv = {
port_already_in_use_error:
'Den här porten används redan av en annan SRT källa. Välj en annan port.',
passphrase_error: 'Lösenordet måste vara mellan 10 och 79 tecken',
generic_error: 'Ett fel uppstod vid skapandet av SRT källan',
cancel: 'Avbryt'
},
clear: 'Rensa',
Expand Down

0 comments on commit 65824d0

Please sign in to comment.