|
1 | 1 | import React from 'react'; |
2 | 2 |
|
3 | | -<<<<<<< HEAD:src/views/locale/LocaleDetails.tsx |
4 | | -import { getCldrLocale } from '../../data/cldrLocales'; |
5 | | -import CommaSeparated from '../../generic/CommaSeparated'; |
6 | | -import Deemphasized from '../../generic/Deemphasized'; |
7 | | -import { numberToFixedUnlessSmall, numberToSigFigs } from '../../generic/numberUtils'; |
8 | | -import { PercentageDifference } from '../../generic/PercentageDifference'; |
9 | | -import { LocaleData, LocaleSource } from '../../types/DataTypes'; |
10 | | -import DetailsField from '../common/details/DetailsField'; |
11 | | -import DetailsSection from '../common/details/DetailsSection'; |
12 | | -import HoverableObjectName from '../common/HoverableObjectName'; |
13 | | -import ObjectWikipediaInfo from '../common/ObjectWikipediaInfo'; |
14 | | -======= |
15 | 3 | import Hoverable from '@features/hovercard/Hoverable'; |
16 | 4 | import HoverableObjectName from '@features/hovercard/HoverableObjectName'; |
17 | | ->>>>>>> origin/master:src/widgets/details/LocaleDetails.tsx |
18 | 5 |
|
19 | 6 | import LocaleCensusCitation from '@entities/locale/LocaleCensusCitation'; |
20 | 7 | import LocaleCLDRSupportSection from '@entities/locale/LocaleDetailsCLDR'; |
@@ -226,43 +213,6 @@ const LocalePopulationSection: React.FC<{ locale: LocaleData }> = ({ locale }) = |
226 | 213 | ); |
227 | 214 | }; |
228 | 215 |
|
229 | | -/** CLDR Support section */ |
230 | | -const LocaleCLDRSupportSection: React.FC<{ locale: LocaleData }> = ({ locale }) => { |
231 | | - const cldr = getCldrLocale(locale.ID); |
232 | | - if (!cldr) { |
233 | | - return ( |
234 | | - <DetailsSection title="CLDR Support"> |
235 | | - <Deemphasized>Not supported by CLDR.</Deemphasized> |
236 | | - </DetailsSection> |
237 | | - ); |
238 | | - } |
239 | | - return ( |
240 | | - <DetailsSection title="CLDR Support"> |
241 | | - <DetailsField title="Tier:">{cldr.tier}</DetailsField> |
242 | | - <DetailsField title="Present in CLDR:"> |
243 | | - {cldr.presentInCLDRDatabase ? 'Yes' : 'No'} |
244 | | - </DetailsField> |
245 | | - <DetailsField title="Default Locale:"> |
246 | | - {cldr.localeIsDefaultForLanguage ? 'Yes' : 'No'} |
247 | | - </DetailsField> |
248 | | - <DetailsField title="Target / Computed Level:"> |
249 | | - {cldr.targetLevel ?? '—'} / {cldr.computedLevel ?? '—'} |
250 | | - </DetailsField> |
251 | | - {cldr.confirmedPct != null && ( |
252 | | - <DetailsField title="Confirmed %:">{cldr.confirmedPct.toFixed(1)}%</DetailsField> |
253 | | - )} |
254 | | - {cldr.icuIncluded != null && ( |
255 | | - <DetailsField title="ICU:">{cldr.icuIncluded ? 'Yes' : 'No'}</DetailsField> |
256 | | - )} |
257 | | - {cldr.missingCounts && ( |
258 | | - <DetailsField title="Missing Counts:"> |
259 | | - {cldr.missingCounts.found} found / {cldr.missingCounts.unconfirmed} unconfirmed /{' '} |
260 | | - {cldr.missingCounts.missing} missing |
261 | | - </DetailsField> |
262 | | - )} |
263 | | - {cldr.notes && cldr.notes.length > 0 && ( |
264 | | - <DetailsField title="Missing Features:">{cldr.notes.join(', ')}</DetailsField> |
265 | | - )} |
266 | 216 | const LocaleOtherSection: React.FC<{ locale: LocaleData }> = ({ locale }) => { |
267 | 217 | const { officialStatus, wikipedia, localeSource, containedLocales } = locale; |
268 | 218 | return ( |
|
0 commit comments