From 29522d2ce75901fca20c7f8102ca4ab1f925e8d9 Mon Sep 17 00:00:00 2001 From: Mike Simpson Date: Fri, 12 May 2023 16:38:39 +0100 Subject: [PATCH] Starting to add some localisation --- app/src/cc-config.json | 5 ++++- app/src/cc-config.ts | 15 +++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/src/cc-config.json b/app/src/cc-config.json index a0611813..dd1361ae 100644 --- a/app/src/cc-config.json +++ b/app/src/cc-config.json @@ -5,5 +5,8 @@ "privacyStatement": "{Privacy statement goes here}", "initialMapPosition": [ 51.5245255, -0.1338422 ], - "initialZoomLevel": 16 + "initialZoomLevel": 16, + + "postcode": "Postcode", + "energy_rating": "Building Research Establishment Environmental Assessment Method (BREEAM) rating" } diff --git a/app/src/cc-config.ts b/app/src/cc-config.ts index 905cf5db..54390139 100644 --- a/app/src/cc-config.ts +++ b/app/src/cc-config.ts @@ -1,11 +1,14 @@ export interface CCConfig { - cityName: string; - projectBlurb: string; - githubURL: string; - privacyStatement: string; + cityName: string; // City name (i.e. "Colouring {City Name}") + projectBlurb: string; // Description used on homepage + githubURL: string; // URL of the project's GitHub repository + privacyStatement: string; // Privacy statement, including where data is stored - initialMapPosition: [number, number]; - initialZoomLevel: number; + initialMapPosition: [number, number]; // Initial location of the map [latitude, longitude] + initialZoomLevel: number; // Initial Zoom Level + + postcode: string; // Alternative for "Postcode" text (i.e. "Zip Code") + energy_rating: string; // Official Environmental Energy Rating (BREEAM Rating in UK) }