[CLD-6487] Replace 'Country' with 'Country/Region' in country selectors (#25977)

* Replace 'Country' with 'Country/Region' in countr selectors

* Fix linteR

* Update snapshots
Этот коммит содержится в:
Nick Misasi
2024-01-22 14:56:01 -05:00
коммит произвёл GitHub
родитель 16d80e61a2
Коммит 09b701204f
5 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

@@ -2,7 +2,6 @@
// See LICENSE.txt for license information.
import type {Stripe} from '@stripe/stripe-js';
import {getCode} from 'country-list';
import type {Address, CloudCustomerPatch, Feedback, WorkspaceDeletionRequest} from '@mattermost/types/cloud';
@@ -48,7 +47,7 @@ export function completeStripeAddPaymentMethod(
line2: billingDetails.address2,
city: billingDetails.city,
state: billingDetails.state,
country: getCode(billingDetails.country),
country: billingDetails.country,
postal_code: billingDetails.postalCode,
},
},

Просмотреть файл

@@ -29,11 +29,11 @@ const CountrySelector = (props: CountrySelectorProps) => {
}))}
legend={formatMessage({
id: 'payment_form.country',
defaultMessage: 'Country',
defaultMessage: 'Country/Region',
})}
placeholder={formatMessage({
id: 'payment_form.country',
defaultMessage: 'Country',
defaultMessage: 'Country/Region',
})}
name={'country_dropdown'}
/>

Просмотреть файл

@@ -252,7 +252,7 @@ Object {
<div
class="DropDown__placeholder css-1wa3eu0-placeholder"
>
Country
Country/Region
</div>
<div
class="css-1ed09z3-Input"

Просмотреть файл

@@ -4356,7 +4356,7 @@
"payment_form.change_payment_method": "Change Payment Method",
"payment_form.city": "City",
"payment_form.company_name": "Company Name",
"payment_form.country": "Country",
"payment_form.country": "Country/Region",
"payment_form.credit_card": "Credit Card",
"payment_form.gather_wire_transfer_intent": "Looking for other payment options?",
"payment_form.gather_wire_transfer_intent_modal.ach": "ACH",

Просмотреть файл

@@ -1,11 +1,16 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {getData} from 'country-list';
import {getData, overwrite} from 'country-list';
type Country = {
name: string;
code: string;
}
overwrite([{
code: 'TW',
name: 'Taiwan',
}]);
export const COUNTRIES = getData().sort((a: Country, b: Country) => (a.name > b.name ? 1 : -1));