Skip to content

Commit

Permalink
fix(soffit): localize keys
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Feb 6, 2023
1 parent ad8a18a commit d934369
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions uniquely/soffit-pwa/src/l18r/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"invalid_form_data": "The form information is not correct.",
"check_network_connection": "Please check internet, and send again.",

"lottery_number": "Lottery number",
"first_and_last_name": "First/Last Name",
"lottery_code": "Lottery number",
"full_name": "First/Last Name",
"phone_number": "Phone number",
"send_form": "Send form",
"submit_form": "Submit",
"cancel": "Cancel",
"lottery_form": "Participate in the lottery",
"supply_chain_form": "Supply Chain Form",
"lottery_form_title": "Participate in the lottery",
"supply_chain_form_title": "Supply Chain Form",
"information_saved": "Your information has been successfully saved.",
"activity_area": "Activity area",

Expand Down
12 changes: 6 additions & 6 deletions uniquely/soffit-pwa/src/l18r/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"invalid_form_data": "اطلاعات فرم صحیح نمی‌باشد.",
"check_network_connection": "لطفا از اتصال خود به اینترنت اطمینان حاصل فرمایید و دوباره ارسال کنید.",

"lottery_number": "کد قرعه‌کشی",
"first_and_last_name": "نام و نام‌خانوادگی",
"phone_number": "شماره موبایل",
"send_form": "ارسال فرم",
"lottery_code": "کد قرعه‌کشی",
"full_name": "نام و نام‌خانوادگی",
"phone_number": "شماره تلفن",
"submit_form": "ارسال فرم",
"cancel": "انصراف",
"lottery_form": "فرم شرکت در قرعه‌کشی",
"supply_chain_form": "فرم زنجیره تامین",
"lottery_form_title": "فرم شرکت در قرعه‌کشی",
"supply_chain_form_title": "فرم زنجیره تامین",
"information_saved": "اطلاعات شما با موفقیت ذخیره شد.",
"activity_area": "حوزه فعالیت",

Expand Down
4 changes: 2 additions & 2 deletions uniquely/soffit-pwa/src/lottery-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ declare global {
export class AlwatrLotteryBox extends LocalizeMixin(AlwatrSmartElement) {
@state() iconBoxContent: IconBoxContent = {
icon: 'gift-outline',
headline: message('lottery_form'),
headline: message('lottery_form_title'),
elevated: 2,
};

Expand Down Expand Up @@ -87,7 +87,7 @@ export class AlwatrLotteryBox extends LocalizeMixin(AlwatrSmartElement) {
return html`<span class="success">${message('information_saved')}</span>`;
}
else {
return html`${message('lottery_form')}`;
return html`${message('lottery_form_title')}`;
}
}

Expand Down
6 changes: 3 additions & 3 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
outlined
active-outline
stated
placeholder=${message('lottery_number')}
placeholder=${message('lottery_code')}
></alwatr-text-field>
<alwatr-text-field
name="name"
type="text"
outlined
active-outline
stated
placeholder=${message('first_and_last_name')}
placeholder=${message('full_name')}
></alwatr-text-field>
<alwatr-text-field
name="phone"
Expand All @@ -135,7 +135,7 @@ export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
></alwatr-text-field>
<alwatr-radio-group .options=${this._radioGroupContent}></alwatr-radio-group>
<div class="button-container">
<alwatr-button outlined @click=${this.submit}>${message('send_form')}</alwatr-button>
<alwatr-button outlined @click=${this.submit}>${message('submit_form')}</alwatr-button>
<alwatr-button @click=${this.cancel}>${message('cancel')}</alwatr-button>
</div>
`;
Expand Down
4 changes: 2 additions & 2 deletions uniquely/soffit-pwa/src/supply-chain-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare global {
export class AlwatrSupplyChainBox extends AlwatrLotteryBox {
@state() override iconBoxContent: IconBoxContent = {
icon: 'infinite-outline',
headline: message('supply_chain_form'),
headline: message('supply_chain_form_title'),
elevated: 2,
};

Expand All @@ -39,7 +39,7 @@ export class AlwatrSupplyChainBox extends AlwatrLotteryBox {
}

else {
return html`${message('supply_chain_form')}`;
return html`${message('supply_chain_form_title')}`;
}
}
}
4 changes: 2 additions & 2 deletions uniquely/soffit-pwa/src/supply-chain-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AlwatrSupplyChainForm extends AlwatrLotteryForm {
outlined
active-outline
stated
placeholder=${message('first_and_last_name')}
placeholder=${message('full_name')}
></alwatr-text-field>
<alwatr-text-field
name="phone"
Expand All @@ -50,7 +50,7 @@ export class AlwatrSupplyChainForm extends AlwatrLotteryForm {
placeholder=${message('activity_area')}
></alwatr-text-field>
<div class="button-container">
<alwatr-button outlined @click=${this.submit}>${message('send_form')}</alwatr-button>
<alwatr-button outlined @click=${this.submit}>${message('submit_form')}</alwatr-button>
<alwatr-button @click=${this.cancel}>${message('cancel')}</alwatr-button>
</div>
`;
Expand Down

0 comments on commit d934369

Please sign in to comment.