Update frontend UI text to use British English spelling

Change user-facing strings from American to British English: analyze→analyse,
analyzing→analysing, optimized→optimised, color→colour, analyzes→analyses,
synthesizes→synthesises, optimization→optimisation. Code identifiers, status
enums, and developer-facing messages are intentionally unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
michael 2026-02-23 19:11:10 -06:00
parent 81431d9aa9
commit fd934bbb5f
6 changed files with 24 additions and 24 deletions

View file

@ -375,7 +375,7 @@ const AppContent: React.FC<{ msalInstance: any }> = ({ msalInstance }) => {
} catch (err) {
console.error("Failed to upload and analyze proof:", err);
setError("Failed to upload and analyze proof. Please try again.");
setError("Failed to upload and analyse proof. Please try again.");
setCampaignProofs(prevProofs => ({
...prevProofs,
[campaignName]: prevProofs[campaignName].map(proof =>

View file

@ -75,12 +75,12 @@ const IG_HERO_POST_1_FEEDBACK_V1: AgentReview = {
leadAgentSummary: "The proof could not be reliably processed by some agents due to low confidence in the analysis. This may happen if the proof is too abstract or irrelevant to typical marketing content. This version has been logged for manual human review. Please try uploading a revised version of the proof.",
legalAgentReview: {
ragStatus: "Error",
feedback: "The agent could not analyze this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
feedback: "The agent could not analyse this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
issues: []
},
brandAgentReview: {
ragStatus: "Error",
feedback: "The agent could not analyze this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
feedback: "The agent could not analyse this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
issues: []
},
channelBestPracticesAgentReview: {
@ -90,7 +90,7 @@ const IG_HERO_POST_1_FEEDBACK_V1: AgentReview = {
},
channelTechSpecsAgentReview: {
ragStatus: "Amber",
feedback: "While the image quality is high, the composition is not optimized for vertical formats like Instagram Stories. The high ratio of text in the image could also potentially reduce advertising reach on some platforms.",
feedback: "While the image quality is high, the composition is not optimised for vertical formats like Instagram Stories. The high ratio of text in the image could also potentially reduce advertising reach on some platforms.",
issues: ["Image composition is not mobile-first or suitable for vertical formats.", "High ratio of text in the image may negatively impact ad performance."]
}
};
@ -110,7 +110,7 @@ const IG_HERO_POST_1_FEEDBACK_V2: AgentReview = {
},
channelBestPracticesAgentReview: {
ragStatus: "Green",
feedback: "The content strategy is effective with clear messaging and well-optimized visual hierarchy. No issues found.",
feedback: "The content strategy is effective with clear messaging and well-optimised visual hierarchy. No issues found.",
issues: []
},
channelTechSpecsAgentReview: {
@ -192,7 +192,7 @@ export const initialCampaignProofs: { [key: string]: any[] } = {
legalAgentReview: { ragStatus: "Green", feedback: "Compliant.", issues: [] },
brandAgentReview: { ragStatus: "Green", feedback: "Brand aligned.", issues: [] },
channelBestPracticesAgentReview: { ragStatus: "Green", feedback: "Engaging content strategy.", issues: [] },
channelTechSpecsAgentReview: { ragStatus: "Green", feedback: "Optimized for mobile.", issues: [] }
channelTechSpecsAgentReview: { ragStatus: "Green", feedback: "Optimised for mobile.", issues: [] }
},
overallStatus: 'Passed',
}
@ -218,7 +218,7 @@ export const initialCampaignProofs: { [key: string]: any[] } = {
leadAgentSummary: "The proof has Passed review with no issues found across all categories. It is well-designed, compliant, and ready for deployment.",
legalAgentReview: { ragStatus: "Green", feedback: "All claims are substantiated and disclaimers are correctly placed.", issues: [] },
brandAgentReview: { ragStatus: "Green", feedback: "The proof adheres perfectly to all brand guidelines.", issues: [] },
channelBestPracticesAgentReview: { ragStatus: "Green", feedback: "The content strategy is effective and well-optimized for engagement.", issues: [] },
channelBestPracticesAgentReview: { ragStatus: "Green", feedback: "The content strategy is effective and well-optimised for engagement.", issues: [] },
channelTechSpecsAgentReview: { ragStatus: "Green", feedback: "The infographic format is highly suitable for the selected channel.", issues: [] },
},
overallStatus: 'Passed',
@ -935,7 +935,7 @@ const UploadProofModal: React.FC<{
{isLoading ? (
<>
<SpinnerIcon className="animate-spin -ml-1 mr-2 h-5 w-5 text-white" />
Analyzing...
Analysing...
</>
) : 'Start Analysis'}
</button>
@ -950,10 +950,10 @@ const UploadProofModal: React.FC<{
const LoadingCell: React.FC<{ progress: { completed: number; total: number } }> = ({ progress }) => {
const percent = progress.total > 0 ? Math.round((progress.completed / progress.total) * 100) : 0;
let statusText = 'Analyzing...';
let statusText = 'Analysing...';
if (progress.completed < AGENT_NAMES.length) {
const agentName = AGENT_NAMES[progress.completed];
statusText = `Analyzing: ${agentName}...`;
statusText = `Analysing: ${agentName}...`;
} else if (progress.completed === AGENT_NAMES.length) {
statusText = 'Lead Agent Review...';
} else {

View file

@ -23,13 +23,13 @@ const specialistAgents: CheckDetail[] = [
name: 'Brand Agent',
icon: <BrandIcon />,
role: 'Visual Identity',
description: 'Verifies logo usage, color palette, and visual identity.'
description: 'Verifies logo usage, colour palette, and visual identity.'
},
{
name: 'Channel Best Practices Agent',
icon: <ChannelIcon />,
role: 'Creative Strategy',
description: 'Analyzes content strategy, engagement, and platform optimization.'
description: 'Analyses content strategy, engagement, and platform optimisation.'
},
{
name: 'Channel Tech Specs Agent',
@ -74,7 +74,7 @@ export const ChecksOverview: React.FC = () => {
<h3 className="text-2xl font-bold text-white mb-2">Lead Agent</h3>
<p className="text-cyan-brand font-bold text-xs uppercase tracking-widest mb-4">Orchestrator</p>
<p className="text-slate-300 text-sm leading-relaxed">
Synthesizes feedback & coordinates analysis across all specialist agents.
Synthesises feedback & coordinates analysis across all specialist agents.
</p>
</div>
</div>

View file

@ -52,12 +52,12 @@ const IG_HERO_POST_1_FEEDBACK_V1: AgentReview = {
leadAgentSummary: "The proof could not be reliably processed by some agents due to low confidence in the analysis. This may happen if the proof is too abstract or irrelevant to typical marketing content. This version has been logged for manual human review. Please try uploading a revised version of the proof.",
legalAgentReview: {
ragStatus: "Error",
feedback: "The agent could not analyze this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
feedback: "The agent could not analyse this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
issues: []
},
brandAgentReview: {
ragStatus: "Error",
feedback: "The agent could not analyze this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
feedback: "The agent could not analyse this proof with high confidence. This may be because the content is irrelevant, nonsensical, or too far outside of expected marketing materials.",
issues: []
},
channelBestPracticesAgentReview: {
@ -67,7 +67,7 @@ const IG_HERO_POST_1_FEEDBACK_V1: AgentReview = {
},
channelTechSpecsAgentReview: {
ragStatus: "Amber",
feedback: "While the image quality is high, the composition is not optimized for vertical formats like Instagram Stories. The high ratio of text in the image could also potentially reduce advertising reach on some platforms.",
feedback: "While the image quality is high, the composition is not optimised for vertical formats like Instagram Stories. The high ratio of text in the image could also potentially reduce advertising reach on some platforms.",
issues: ["Image composition is not mobile-first or suitable for vertical formats.", "High ratio of text in the image may negatively impact ad performance."]
},
};
@ -87,7 +87,7 @@ const IG_HERO_POST_1_FEEDBACK_V2: AgentReview = {
},
channelBestPracticesAgentReview: {
ragStatus: "Green",
feedback: "The content strategy is effective with clear messaging and well-optimized visual hierarchy. No issues found.",
feedback: "The content strategy is effective with clear messaging and well-optimised visual hierarchy. No issues found.",
issues: []
},
channelTechSpecsAgentReview: {
@ -143,7 +143,7 @@ export const initialProjectAssets: { [key: string]: any[] } = {
leadAgentSummary: "The proof has Passed review with no issues found across all categories. It is well-designed, compliant, and ready for deployment.",
legalAgentReview: { ragStatus: "Green", feedback: "All claims are substantiated and disclaimers are correctly placed.", issues: [] },
brandAgentReview: { ragStatus: "Green", feedback: "The proof adheres perfectly to all brand guidelines.", issues: [] },
channelBestPracticesAgentReview: { ragStatus: "Green", feedback: "The content strategy is effective and well-optimized for engagement.", issues: [] },
channelBestPracticesAgentReview: { ragStatus: "Green", feedback: "The content strategy is effective and well-optimised for engagement.", issues: [] },
channelTechSpecsAgentReview: { ragStatus: "Green", feedback: "The infographic format is highly suitable for the selected channel.", issues: [] },
},
overallStatus: 'Passed',
@ -445,9 +445,9 @@ const ProjectAssetUpload: React.FC<{
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
Analyzing...
Analysing...
</>
) : 'Upload & Analyze Proof'}
) : 'Upload & Analyse Proof'}
</button>
</div>
</form>
@ -458,10 +458,10 @@ const ProjectAssetUpload: React.FC<{
const LoadingCell: React.FC<{ progress: { completed: number; total: number } }> = ({ progress }) => {
const percent = progress.total > 0 ? Math.round((progress.completed / progress.total) * 100) : 0;
let statusText = 'Analyzing...';
let statusText = 'Analysing...';
if (progress.completed < AGENT_NAMES.length) {
const agentName = AGENT_NAMES[progress.completed];
statusText = `Analyzing: ${agentName}...`;
statusText = `Analysing: ${agentName}...`;
} else if (progress.completed === AGENT_NAMES.length) {
statusText = 'Lead Agent Review...';
} else {

View file

@ -106,7 +106,7 @@ export const StatusDashboard: React.FC<StatusDashboardProps> = ({ status, varian
{agentStatus === 'in-progress' ? (
<div className={`flex items-center ${isHeroVariant ? 'text-white/80' : 'text-grey-700'}`}>
<SpinnerIcon className="h-4 w-4 mr-2 custom-spinner" />
<span>Analyzing...</span>
<span>Analysing...</span>
</div>
) : (
<StatusInfo

View file

@ -117,7 +117,7 @@ const ConfirmationComponent: React.FC<{
disabled={isSubmitDisabled}
className="w-full bg-active-blue text-white font-bold py-2 px-4 rounded-md hover:bg-primary-blue transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed"
>
Confirm &amp; Analyze
Confirm &amp; Analyse
</button>
</div>
);