Skip to content

Commit

Permalink
update: localization for acars
Browse files Browse the repository at this point in the history
update localization

fix: localization
  • Loading branch information
Revyn112 committed Dec 11, 2024
1 parent b7f45d5 commit 8224846
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"Headwind": {
"Settings": {
"AtsuAoc": {
"OptionalA32nxErrorReporting": "Optional Headwind Simulations Error Reporting"
"AcarsNetwork": "ACARS Network",
"OptionalA32nxErrorReporting": "Optional Headwind Simulations Error Reporting",
"SayIntentionsKey": "SayIntentions API Key",
"ThereWasAnErrorEncounteredWhenValidatingYourAcarsID": "There was an error validating your ACARS ID",
"YourAcarsIdHasBeenRemoved": "Your ACARS ID has been removed",
"YourAcarsIdHasBeenValidated": "Your ACARS ID has been validated"
},
"flyPad": {
"Orange": "Orange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export const AtsuAocPage = () => {
AcarsConnector.validate(network, value)
.then((response) => {
if (!value) {
toast.success(`${t('Settings.AtsuAoc.YourHoppieIdHasBeenRemoved')} ${response}`);
toast.success(`${t('Headwind.Settings.AtsuAoc.YourAcarsIdHasBeenRemoved')} ${response}`);
return;
}
toast.success(`${t('Settings.AtsuAoc.YourHoppieIdHasBeenValidated')} ${response}`);
toast.success(`${t('Headwind.Settings.AtsuAoc.YourAcarsIdHasBeenValidated')} ${response}`);
})
.catch((_error) => {
toast.error(t('Settings.AtsuAoc.ThereWasAnErrorEncounteredWhenValidatingYourHoppieID'));
toast.error(t('Headwind.Settings.AtsuAoc.ThereWasAnErrorEncounteredWhenValidatingYourAcarsID'));
});
};

Expand Down Expand Up @@ -179,7 +179,7 @@ export const AtsuAocPage = () => {
<Toggle value={telexEnabled === 'ENABLED'} onToggle={(toggleValue) => handleTelexToggle(toggleValue)} />
</SettingItem>

<SettingItem name={t('Settings.AtsuAoc.AcarsNetwork')}>
<SettingItem name={t('Headwind.Settings.AtsuAoc.AcarsNetwork')}>
<SelectGroup>
{acarsNetworkButtons.map((button) => (
<SelectItem
Expand All @@ -205,7 +205,7 @@ export const AtsuAocPage = () => {
)}

{acarsNetwork === AcarsNetwork.SayIntentions && (
<SettingItem name={t('Settings.AtsuAoc.SayIntentionsKey')}>
<SettingItem name={t('Headwind.Settings.AtsuAoc.SayIntentionsKey')}>
<SimpleInput
className="w-30 text-center"
value={sayIntentionsKey}
Expand Down

0 comments on commit 8224846

Please sign in to comment.