From 5fe50a374854382be118ccd176d7e4c5f6d8a646 Mon Sep 17 00:00:00 2001 From: a-ill Date: Mon, 3 Jul 2023 21:44:24 +0300 Subject: [PATCH] Update --- .../svelte/public/locales/en/landing-component.json | 2 +- Server/public/js/libraries/serverTools.js | 10 +++------- Server/public/locales/en/landing-component.json | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Server/app/svelte/public/locales/en/landing-component.json b/Server/app/svelte/public/locales/en/landing-component.json index 9e2d2e7..34d74ae 100644 --- a/Server/app/svelte/public/locales/en/landing-component.json +++ b/Server/app/svelte/public/locales/en/landing-component.json @@ -3,7 +3,7 @@ "groupsTitle": "GROUPS", "groupsText": "We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.", "communitiesTitle": "COMMUNITIES", - "communitiesText": "We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.", + "communitiesText": "We establish communities based on libertarian socialist principles, where community members have ownership over land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.", "cooperativesTitle": "COOPERATIVES", "cooperativesText": "We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism." } \ No newline at end of file diff --git a/Server/public/js/libraries/serverTools.js b/Server/public/js/libraries/serverTools.js index 127c4c9..274a8f8 100644 --- a/Server/public/js/libraries/serverTools.js +++ b/Server/public/js/libraries/serverTools.js @@ -91,17 +91,13 @@ export function loadLocaleContent(content,componentName,loaded,callback) { locale = "en" } } - if (callback!=undefined) { - callback(locale) - } getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) { + if (callback!=undefined) { + callback(locale) + } let parsed = JSON.parse(response) content.set(parsed) loaded = 1 }) return locale -} - -export function getLocale(locale,lang) { - locale[0] = lang } \ No newline at end of file diff --git a/Server/public/locales/en/landing-component.json b/Server/public/locales/en/landing-component.json index 9e2d2e7..34d74ae 100644 --- a/Server/public/locales/en/landing-component.json +++ b/Server/public/locales/en/landing-component.json @@ -3,7 +3,7 @@ "groupsTitle": "GROUPS", "groupsText": "We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.", "communitiesTitle": "COMMUNITIES", - "communitiesText": "We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.", + "communitiesText": "We establish communities based on libertarian socialist principles, where community members have ownership over land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.", "cooperativesTitle": "COOPERATIVES", "cooperativesText": "We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism." } \ No newline at end of file