Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat(COR-1674): Added the new lokalize key (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
VWSCoronaDashboard30 authored Aug 22, 2023
1 parent f105e90 commit 9bdfd57
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 87 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/pages/gemeente/[code]/rioolwater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const SewerWater = (props: StaticProps<typeof getStaticProps>) => {

const sewerAverages = data.sewer;
const sewerInstallationMeasurement = data.sewer_installation_measurement;
const populationCountConnectedToRwzis = data.static_values.population_count_connected_to_rwzis;
const populationCountConnectedToRWZIS = data.static_values.population_count_connected_to_rwzis;

if (!sewerAverages) {
/**
Expand Down Expand Up @@ -132,9 +132,9 @@ const SewerWater = (props: StaticProps<typeof getStaticProps>) => {
isAmount
/>
<Text>
{replaceComponentsInText(commonTexts.gemeente_index.population_count, {
{replaceComponentsInText(commonTexts.gemeente_index.population_count_connected_to_rwzis, {
municipalityName: municipalityName,
populationCount: <strong>{formatNumber(populationCountConnectedToRwzis)}</strong>,
populationCountConnectedToRWZIS: <strong>{formatNumber(populationCountConnectedToRWZIS)}</strong>,
})}
</Text>

Expand Down
1 change: 1 addition & 0 deletions packages/cms/src/lokalize/key-mutations.csv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
timestamp,action,key,document_id,move_to
2023-08-18T14:03:05.481Z,add,common.gemeente_index.population_count_connected_to_rwzis,jnRBBkraje744C8PaQGbfi,__
190 changes: 106 additions & 84 deletions packages/cms/src/studio/data/data-structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
*/
export const dataStructure = {
archived_gm: {
deceased_rivm_archived_20221231: ['covid_daily', 'covid_daily_moving_average', 'covid_total'],
vaccine_coverage_per_age_group_archived_20220622: [
'age_group_range',
'fully_vaccinated_percentage',
'has_one_shot_percentage',
'birthyear_range',
'fully_vaccinated_percentage_label',
'has_one_shot_percentage_label',
],
vaccine_coverage_per_age_group_archived_20220908: [
'age_group_range',
'fully_vaccinated_percentage',
'booster_shot_percentage',
'has_one_shot_percentage',
'birthyear_range',
'fully_vaccinated_percentage_label',
'booster_shot_percentage_label',
'has_one_shot_percentage_label',
],
booster_coverage_archived_20220904: ['age_group', 'percentage', 'percentage_label'],
sewer_archived_20230623: ['average', 'total_number_of_samples', 'sampled_installation_count', 'total_installation_count', 'data_is_outdated'],
tested_overall_archived_20230331: ['infected', 'infected_moving_average', 'infected_moving_average_rounded', 'infected_per_100k', 'infected_per_100k_moving_average'],
},
Expand Down Expand Up @@ -72,10 +92,27 @@ export const dataStructure = {
'posttest_isolation_support_trend',
],
behavior_annotations_archived_20230412: ['behavior_indicator', 'message_title_nl', 'message_title_en', 'message_desc_nl', 'message_desc_en'],
repeating_shot_administered_20220713: ['ggd_administered_total'],
corona_melder_app_warning_archived_20220421: ['count'],
corona_melder_app_download_archived_20220421: ['count'],
booster_shot_administered_archived_20220904: ['administered_total', 'ggd_administered_total', 'others_administered_total'],
booster_coverage_archived_20220904: ['age_group', 'percentage'],
deceased_rivm_archived_20221231: ['covid_daily', 'covid_daily_moving_average', 'covid_total'],
deceased_rivm_per_age_group_archived_20221231: ['age_group_range', 'age_group_percentage', 'covid_percentage'],
doctor_archived_20210903: ['covid_symptoms_per_100k', 'covid_symptoms'],
disability_care_archived_20230126: [
'newly_infected_people',
'newly_infected_people_moving_average',
'deceased_daily',
'deceased_daily_moving_average',
'newly_infected_locations',
'infected_locations_total',
'infected_locations_percentage',
],
elderly_at_home_archived_20230126: [
'positive_tested_daily',
'positive_tested_daily_moving_average',
'positive_tested_daily_per_100k',
'deceased_daily',
'deceased_daily_moving_average',
],
g_number_archived_20220607: ['g_number'],
nursing_home_archived_20230126: [
'newly_infected_people',
Expand All @@ -86,9 +123,65 @@ export const dataStructure = {
'infected_locations_total',
'infected_locations_percentage',
],
tested_ggd_archived_20230321: [
'infected',
'infected_moving_average',
'infected_percentage',
'infected_percentage_moving_average',
'tested_total',
'tested_total_moving_average',
'tested_total_moving_average_rounded',
],
tested_overall_archived_20230331: ['infected', 'infected_moving_average', 'infected_moving_average_rounded', 'infected_per_100k', 'infected_per_100k_moving_average'],
tested_per_age_group_archived_20230331: [
'infected_age_0_9_per_100k',
'infected_age_10_19_per_100k',
'infected_age_20_29_per_100k',
'infected_age_30_39_per_100k',
'infected_age_40_49_per_100k',
'infected_age_50_59_per_100k',
'infected_age_60_69_per_100k',
'infected_age_70_79_per_100k',
'infected_age_80_89_per_100k',
'infected_age_90_plus_per_100k',
'infected_overall_per_100k',
],
sewer_archived_20230623: ['average'],
vaccine_coverage_per_age_group_archived_20220622: [
'age_group_range',
'age_group_percentage',
'age_group_total',
'fully_vaccinated',
'has_one_shot',
'fully_vaccinated_percentage',
'has_one_shot_percentage',
'date_of_report_unix',
'birthyear_range',
],
vaccine_coverage_per_age_group_archived_20220908: [
'age_group_range',
'age_group_percentage',
'age_group_total',
'fully_vaccinated',
'booster_shot',
'has_one_shot',
'fully_vaccinated_percentage',
'booster_shot_percentage',
'has_one_shot_percentage',
'date_of_report_unix',
'birthyear_range',
],
vaccine_coverage_per_age_group_estimated_archived_20220908: [
'age_18_plus_fully_vaccinated',
'age_18_plus_has_one_shot',
'age_18_plus_birthyear',
'age_12_plus_fully_vaccinated',
'age_12_plus_has_one_shot',
'age_12_plus_birthyear',
],
vulnerable_nursing_home_archived_20230711: ['newly_infected_locations', 'infected_locations_total', 'infected_locations_percentage'],
reproduction_archived_20230711: ['index_low', 'index_average', 'index_high'],
vaccine_vaccinated_or_support_archived_20230411: ['percentage_average', 'percentage_70_plus', 'percentage_55_69', 'percentage_40_54', 'percentage_25_39', 'percentage_16_24'],
vaccine_coverage_archived_20220518: ['booster_vaccinated', 'partially_vaccinated', 'fully_vaccinated', 'partially_or_fully_vaccinated'],
vaccine_delivery_per_supplier_archived_20211101: [
'total',
Expand Down Expand Up @@ -118,11 +211,17 @@ export const dataStructure = {
'janssen_not_available',
'janssen_total',
],
vaccine_vaccinated_or_support_archived_20230411: ['percentage_average', 'percentage_70_plus', 'percentage_55_69', 'percentage_40_54', 'percentage_25_39', 'percentage_16_24'],
repeating_shot_administered_20220713: ['ggd_administered_total'],
corona_melder_app_warning_archived_20220421: ['count'],
corona_melder_app_download_archived_20220421: ['count'],
infectious_people_archived_20210709: ['margin_low', 'estimate', 'margin_high'],
},
archived_vr_collection: {
vulnerable_nursing_home_archived_20230711: ['newly_infected_locations', 'infected_locations_total', 'infected_locations_percentage'],
disability_care_archived_20230126: ['newly_infected_people', 'newly_infected_locations', 'infected_locations_total', 'infected_locations_percentage', 'deceased_daily'],
elderly_at_home_archived_20230126: ['positive_tested_daily', 'positive_tested_daily_per_100k', 'deceased_daily'],
},
archived_vr_collection: { vulnerable_nursing_home_archived_20230711: ['newly_infected_locations', 'infected_locations_total', 'infected_locations_percentage'] },
gm: {
deceased_rivm_archived_20221231: ['covid_daily', 'covid_daily_moving_average', 'covid_total'],
hospital_nice: [
'admissions_on_date_of_admission',
'admissions_on_date_of_admission_moving_average',
Expand All @@ -142,25 +241,6 @@ export const dataStructure = {
'vaccinated_percentage_60_plus',
'vaccinated_percentage_60_plus_label',
],
vaccine_coverage_per_age_group_archived: [
'age_group_range',
'fully_vaccinated_percentage',
'has_one_shot_percentage',
'birthyear_range',
'fully_vaccinated_percentage_label',
'has_one_shot_percentage_label',
],
vaccine_coverage_per_age_group_archived_20220908: [
'age_group_range',
'fully_vaccinated_percentage',
'booster_shot_percentage',
'has_one_shot_percentage',
'birthyear_range',
'fully_vaccinated_percentage_label',
'booster_shot_percentage_label',
'has_one_shot_percentage_label',
],
booster_coverage_archived_20220904: ['age_group', 'percentage', 'percentage_label'],
},
gm_collection: {
hospital_nice_choropleth: ['admissions_on_date_of_admission', 'admissions_on_date_of_admission_per_100000', 'admissions_on_date_of_reporting'],
Expand All @@ -179,10 +259,6 @@ export const dataStructure = {
],
},
nl: {
booster_shot_administered_archived_20220904: ['administered_total', 'ggd_administered_total', 'others_administered_total'],
booster_coverage_archived_20220904: ['age_group', 'percentage'],
g_number: ['g_number'],
infectious_people: ['margin_low', 'estimate', 'margin_high'],
intensive_care_nice: [
'admissions_on_date_of_admission',
'admissions_on_date_of_admission_moving_average',
Expand Down Expand Up @@ -222,25 +298,7 @@ export const dataStructure = {
],
hospital_lcps: ['beds_occupied_covid', 'influx_covid_patients', 'influx_covid_patients_moving_average'],
intensive_care_lcps: ['beds_occupied_covid', 'beds_occupied_covid_percentage', 'influx_covid_patients', 'influx_covid_patients_moving_average'],
disability_care_archived_20230126: [
'newly_infected_people',
'newly_infected_people_moving_average',
'deceased_daily',
'deceased_daily_moving_average',
'newly_infected_locations',
'infected_locations_total',
'infected_locations_percentage',
],
deceased_rivm_archived_20221231: ['covid_daily', 'covid_daily_moving_average', 'covid_total'],
deceased_rivm_per_age_group_archived_20221231: ['age_group_range', 'age_group_percentage', 'covid_percentage'],
deceased_cbs: ['registered', 'expected', 'expected_min', 'expected_max'],
elderly_at_home_archived_20230126: [
'positive_tested_daily',
'positive_tested_daily_moving_average',
'positive_tested_daily_per_100k',
'deceased_daily',
'deceased_daily_moving_average',
],
vaccine_administered: ['pfizer', 'moderna', 'astra_zeneca', 'cure_vac', 'janssen', 'sanofi', 'novavax', 'total'],
vaccine_administered_doctors: ['estimated'],
vaccine_administered_ggd_ghor: ['reported'],
Expand All @@ -259,45 +317,9 @@ export const dataStructure = {
'date_of_report_unix',
'birthyear_range',
],
vaccine_coverage_per_age_group_archived: [
'age_group_range',
'age_group_percentage',
'age_group_total',
'fully_vaccinated',
'has_one_shot',
'fully_vaccinated_percentage',
'has_one_shot_percentage',
'date_of_report_unix',
'birthyear_range',
],
vaccine_coverage_per_age_group_archived_20220908: [
'age_group_range',
'age_group_percentage',
'age_group_total',
'fully_vaccinated',
'booster_shot',
'has_one_shot',
'fully_vaccinated_percentage',
'booster_shot_percentage',
'has_one_shot_percentage',
'date_of_report_unix',
'birthyear_range',
],
vaccine_coverage_per_age_group_estimated_fully_vaccinated: ['age_12_plus_birthyear', 'age_12_plus_vaccinated', 'age_18_plus_birthyear', 'age_18_plus_vaccinated'],
vaccine_coverage_per_age_group_estimated_autumn_2022: ['age_12_plus_birthyear', 'age_12_plus_vaccinated', 'age_60_plus_birthyear', 'age_60_plus_vaccinated'],
vaccine_coverage_per_age_group_estimated_archived_20220908: [
'age_18_plus_fully_vaccinated',
'age_18_plus_has_one_shot',
'age_18_plus_birthyear',
'age_12_plus_fully_vaccinated',
'age_12_plus_has_one_shot',
'age_12_plus_birthyear',
],
vaccine_coverage_per_age_group_estimated_fully_vaccinated: ['age_12_plus_birthyear', 'age_12_plus_vaccinated', 'age_18_plus_birthyear', 'age_18_plus_vaccinated'],
variants: ['variant_code', 'values', 'last_value'],
self_test_overall: ['infected_percentage'],
},
vr_collection: {
disability_care_archived_20230126: ['newly_infected_people', 'newly_infected_locations', 'infected_locations_total', 'infected_locations_percentage', 'deceased_daily'],
elderly_at_home_archived_20230126: ['positive_tested_daily', 'positive_tested_daily_per_100k', 'deceased_daily'],
},
};

0 comments on commit 9bdfd57

Please sign in to comment.