From 31d15fe178ad11f354765233b80d7fc7aa38a200 Mon Sep 17 00:00:00 2001 From: Bissbert <43237892+Bissbert@users.noreply.github.com> Date: Tue, 5 May 2026 19:05:12 +0700 Subject: [PATCH] style(lang): British English compliance and AI-tell removal across UI strings Co-Authored-By: Claude Sonnet 4.6 --- .../advanced/TreatmentDetection.tsx | 40 +++++++++---------- .../calculator/CriticalAngleCalc.tsx | 6 +-- .../calculator/DispersionCalculator.tsx | 4 +- src/components/gallery/FamilyModal.tsx | 4 +- src/components/gallery/MineralModal.tsx | 4 +- .../identification/HardnessReference.tsx | 38 +++++++++--------- src/components/lab/ChelseaFilter.tsx | 10 ++--- src/components/lab/LabTools.tsx | 4 +- src/components/lab/SpectroscopeCalculator.tsx | 6 +-- src/components/layout/Footer.astro | 2 +- src/components/optical/DichroscopeResults.tsx | 24 +++++------ src/components/optical/OpticalTools.tsx | 2 +- src/components/quiz/study/LearnQuizWidget.tsx | 2 +- .../questions/equipment/ri-reading-001.yaml | 10 ++--- .../questions/equipment/ri-reading-002.yaml | 8 ++-- .../questions/equipment/ri-reading-003.yaml | 12 +++--- .../questions/equipment/ri-reading-004.yaml | 8 ++-- .../questions/equipment/ri-reading-005.yaml | 16 ++++---- .../questions/equipment/ri-reading-006.yaml | 10 ++--- .../questions/equipment/ri-reading-007.yaml | 10 ++--- .../questions/equipment/ri-reading-008.yaml | 2 +- .../questions/equipment/ri-reading-009.yaml | 4 +- .../questions/equipment/ri-reading-010.yaml | 12 +++--- .../fundamentals/crystal-system-001.yaml | 10 ++--- .../fundamentals/crystal-system-002.yaml | 8 ++-- .../fundamentals/crystal-system-003.yaml | 2 +- .../fundamentals/crystal-system-004.yaml | 8 ++-- .../fundamentals/crystal-system-005.yaml | 6 +-- .../fundamentals/crystal-system-006.yaml | 14 +++---- .../fundamentals/crystal-system-007.yaml | 12 +++--- .../fundamentals/crystal-system-008.yaml | 14 +++---- .../fundamentals/crystal-system-010.yaml | 16 ++++---- .../questions/fundamentals/phys-prop-001.yaml | 6 +-- .../questions/fundamentals/phys-prop-002.yaml | 12 +++--- .../questions/fundamentals/phys-prop-003.yaml | 14 +++---- .../questions/fundamentals/phys-prop-004.yaml | 10 ++--- .../questions/fundamentals/phys-prop-005.yaml | 14 +++---- .../questions/fundamentals/phys-prop-006.yaml | 14 +++---- .../questions/fundamentals/phys-prop-007.yaml | 4 +- .../questions/fundamentals/phys-prop-008.yaml | 8 ++-- .../questions/fundamentals/phys-prop-009.yaml | 8 ++-- .../questions/fundamentals/phys-prop-010.yaml | 12 +++--- .../inclusion-fingerprint-001.yaml | 14 +++---- .../identification/inclusion-fissure-001.yaml | 12 +++--- .../inclusion-growth-tube-001.yaml | 12 +++--- .../inclusion-horsetail-001.yaml | 10 ++--- .../inclusion-negative-crystal-001.yaml | 14 +++---- .../identification/inclusion-silk-001.yaml | 10 ++--- .../identification/inclusion-silk-002.yaml | 6 +-- .../inclusion-three-phase-001.yaml | 18 ++++----- .../inclusion-two-phase-001.yaml | 16 ++++---- .../inclusion-zircon-halo-001.yaml | 6 +-- .../species/corundum-vs-spinel-001.yaml | 18 ++++----- .../species/corundum-vs-spinel-002.yaml | 10 ++--- .../species/corundum-vs-spinel-003.yaml | 14 +++---- .../questions/species/green-stone-001.yaml | 12 +++--- .../questions/species/green-stone-002.yaml | 10 ++--- .../questions/species/green-stone-003.yaml | 20 +++++----- .../questions/species/green-stone-004.yaml | 12 +++--- .../questions/species/green-stone-005.yaml | 8 ++-- .../species/red-stone-garnet-001.yaml | 6 +-- .../species/red-stone-glass-001.yaml | 10 ++--- src/layouts/BaseLayout.astro | 6 +-- src/pages/_dev/study-components.astro | 2 +- src/pages/about.astro | 16 ++++---- src/pages/docs/api/cdl-parser.astro | 2 +- src/pages/docs/api/crystal-geometry.astro | 2 +- src/pages/docs/api/crystal-renderer.astro | 14 +++---- src/pages/docs/cdl.astro | 2 +- src/pages/docs/cli.astro | 6 +-- src/pages/docs/index.astro | 4 +- src/pages/docs/installation.astro | 2 +- src/pages/docs/quickstart.astro | 4 +- src/pages/index.astro | 6 +-- src/pages/learn/index.astro | 2 +- src/pages/og-image.astro | 6 +-- src/pages/study/review.astro | 2 +- 77 files changed, 372 insertions(+), 372 deletions(-) diff --git a/src/components/advanced/TreatmentDetection.tsx b/src/components/advanced/TreatmentDetection.tsx index b5375a5..c2de2b0 100644 --- a/src/components/advanced/TreatmentDetection.tsx +++ b/src/components/advanced/TreatmentDetection.tsx @@ -25,8 +25,8 @@ interface TreatmentType { const TREATMENT_TYPES: TreatmentType[] = [ { name: 'Heat Treatment', - description: 'Controlled heating to improve color and clarity', - purpose: 'Color improvement, inclusion dissolving', + description: 'Controlled heating to improve colour and clarity', + purpose: 'Colour improvement, inclusion dissolving', detectability: 'Moderate' }, { @@ -37,8 +37,8 @@ const TREATMENT_TYPES: TreatmentType[] = [ }, { name: 'Dyeing', - description: 'Adding color through dyes or stains', - purpose: 'Color enhancement', + description: 'Adding colour through dyes or stains', + purpose: 'Colour enhancement', detectability: 'Easy' }, { @@ -49,26 +49,26 @@ const TREATMENT_TYPES: TreatmentType[] = [ }, { name: 'Irradiation', - description: 'Exposure to radiation to alter color', - purpose: 'Color change (blue topaz, colored diamonds)', + description: 'Exposure to radiation to alter colour', + purpose: 'Colour change (blue topaz, coloured diamonds)', detectability: 'Difficult' }, { name: 'Diffusion', - description: 'Surface or bulk diffusion of color-causing elements', - purpose: 'Color enhancement', + description: 'Surface or bulk diffusion of colour-causing elements', + purpose: 'Colour enhancement', detectability: 'Moderate' }, { name: 'Coating', - description: 'Thin surface coating for color/effect', - purpose: 'Color, iridescence, or protective layer', + description: 'Thin surface coating for colour/effect', + purpose: 'Colour, iridescence, or protective layer', detectability: 'Easy' }, { name: 'HPHT', description: 'High Pressure High Temperature processing', - purpose: 'Color improvement (diamonds, synthetic gems)', + purpose: 'Colour improvement (diamonds, synthetic gems)', detectability: 'Very Difficult' }, ]; @@ -77,7 +77,7 @@ const TREATMENT_INDICATORS: Treatment[] = [ { treatment: 'Heat (Corundum)', gems: 'Ruby, Sapphire', - visualIndicators: 'Silk dissolution, rounded inclusions, color zoning changes, stress fractures', + visualIndicators: 'Silk dissolution, rounded inclusions, colour zoning changes, stress fractures', instrumentalTests: 'Microscopy (inclusion changes), spectroscopy (Fe³⁺ peaks)', permanence: 'Permanent', disclosure: 'Standard practice - disclosure varies by market' @@ -85,7 +85,7 @@ const TREATMENT_INDICATORS: Treatment[] = [ { treatment: 'Beryllium Diffusion', gems: 'Sapphire (orange padparadscha)', - visualIndicators: 'Color concentration at facet junctions, uneven color', + visualIndicators: 'Colour concentration at facet junctions, uneven colour', instrumentalTests: 'EDXRF (beryllium detection), FTIR, UV-Vis', permanence: 'Permanent', disclosure: 'Required - significantly affects value' @@ -93,7 +93,7 @@ const TREATMENT_INDICATORS: Treatment[] = [ { treatment: 'Fracture Filling (Glass)', gems: 'Ruby, Diamond', - visualIndicators: 'Flash effect, color flashes in fissures, surface residue', + visualIndicators: 'Flash effect, colour flashes in fissures, surface residue', instrumentalTests: 'Microscopy (gas bubbles, flow structures)', permanence: 'Not permanent - avoid heat/ultrasonic', disclosure: 'Required - major value impact' @@ -109,15 +109,15 @@ const TREATMENT_INDICATORS: Treatment[] = [ { treatment: 'Irradiation + Heat', gems: 'Blue Topaz, Fancy Diamonds', - visualIndicators: 'Uniform color, specific color types (Swiss/London blue)', - instrumentalTests: 'Spectroscopy (radiation-induced defects), color centers', + visualIndicators: 'Uniform colour, specific colour types (Swiss/London blue)', + instrumentalTests: 'Spectroscopy (radiation-induced defects), colour centres', permanence: 'Permanent (stable)', disclosure: 'Required for blue topaz' }, { treatment: 'Dyeing', gems: 'Jade, Chalcedony, Pearls', - visualIndicators: 'Color in pores/fractures, unnatural colors, concentrations', + visualIndicators: 'Colour in pores/fractures, unnatural colours, concentrations', instrumentalTests: 'Microscopy (dye concentrations), Chelsea filter, spectroscopy', permanence: 'Not permanent - can fade', disclosure: 'Required - major value impact' @@ -125,15 +125,15 @@ const TREATMENT_INDICATORS: Treatment[] = [ { treatment: 'Coating', gems: 'Topaz (Mystic), Diamond', - visualIndicators: 'Wear at facet edges, scratches revealing base color', + visualIndicators: 'Wear at facet edges, scratches revealing base colour', instrumentalTests: 'Microscopy (edge chipping), spectroscopy', permanence: 'Not permanent - wears off', disclosure: 'Required - temporary treatment' }, { treatment: 'Lattice Diffusion', - gems: 'Sapphire (full color)', - visualIndicators: 'Even color distribution, possible surface concentration', + gems: 'Sapphire (full colour)', + visualIndicators: 'Even colour distribution, possible surface concentration', instrumentalTests: 'EDXRF (Ti, Fe detection at surface), FTIR', permanence: 'Permanent', disclosure: 'Required - affects value' diff --git a/src/components/calculator/CriticalAngleCalc.tsx b/src/components/calculator/CriticalAngleCalc.tsx index 3b8fb16..005607d 100644 --- a/src/components/calculator/CriticalAngleCalc.tsx +++ b/src/components/calculator/CriticalAngleCalc.tsx @@ -82,9 +82,9 @@ export function CriticalAngleCalc() {
-

Diamond (RI 2.417): θc = 24.4° — Excellent light return

-

Corundum (RI 1.77): θc = 34.4° — Good light return

-

Quartz (RI 1.55): θc = 40.2° — Moderate light return

+

Diamond (RI 2.417): θc = 24.4° (excellent light return)

+

Corundum (RI 1.77): θc = 34.4° (good light return)

+

Quartz (RI 1.55): θc = 40.2° (moderate light return)

); diff --git a/src/components/calculator/DispersionCalculator.tsx b/src/components/calculator/DispersionCalculator.tsx index 12325e3..ec7177d 100644 --- a/src/components/calculator/DispersionCalculator.tsx +++ b/src/components/calculator/DispersionCalculator.tsx @@ -140,7 +140,7 @@ export function DispersionCalculator() { value={result.dispersion} precision={3} label={`Dispersion (${result.category})`} - classification={`${result.category === 'Very High' || result.category === 'High' ? 'Excellent' : result.category === 'Moderate' ? 'Good' : 'Low'} spectral color separation`} + classification={`${result.category === 'Very High' || result.category === 'High' ? 'Excellent' : result.category === 'Moderate' ? 'Good' : 'Low'} spectral colour separation`} classificationLevel={result.level} /> )} @@ -164,7 +164,7 @@ export function DispersionCalculator() {

Why Dispersion Matters

- Dispersion measures how much a gem splits white light into spectral colors. Higher dispersion creates more "fire" — the rainbow flashes seen in a well-cut stone. Diamond's high dispersion (0.044) is why it shows exceptional fire, while quartz's low dispersion (0.013) produces minimal color flashes. + Dispersion measures how much a gem splits white light into spectral colours. Higher dispersion creates more "fire" (the rainbow flashes seen in a well-cut stone). Diamond's high dispersion (0.044) is why it shows exceptional fire, while quartz's low dispersion (0.013) produces minimal colour flashes.

diff --git a/src/components/gallery/FamilyModal.tsx b/src/components/gallery/FamilyModal.tsx index 2f8d220..258aa22 100644 --- a/src/components/gallery/FamilyModal.tsx +++ b/src/components/gallery/FamilyModal.tsx @@ -204,7 +204,7 @@ export function FamilyModal({ family, onClose }: FamilyModalProps) { /> - {/* Crystal Visualization */} + {/* Crystal Visualisation */}
{viewMode === '2d' ? (
@@ -394,7 +394,7 @@ export function FamilyModal({ family, onClose }: FamilyModalProps) { onClick={handleDownloadSVG} disabled={!sanitizedSvg} className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm bg-slate-100 hover:bg-slate-200 disabled:opacity-50 disabled:cursor-not-allowed text-slate-700 rounded-lg transition-colors" - title="Download 2D SVG visualization" + title="Download 2D SVG visualisation" > diff --git a/src/components/gallery/MineralModal.tsx b/src/components/gallery/MineralModal.tsx index 252979d..574b0ed 100644 --- a/src/components/gallery/MineralModal.tsx +++ b/src/components/gallery/MineralModal.tsx @@ -149,7 +149,7 @@ export function MineralModal({ mineral, onClose }: MineralModalProps) { />
- {/* Crystal Visualization */} + {/* Crystal Visualisation */}
{viewMode === '2d' ? (
@@ -248,7 +248,7 @@ export function MineralModal({ mineral, onClose }: MineralModalProps) {