diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index f32eca810..7f7bc664d 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -68,7 +68,7 @@ module.exports = { }, settings: { 'vue-i18n': { - localeDir: './src/locales/*.json', + localeDir: './src/locales/{en,de}.json', // Specify the version of `vue-i18n` you are using. // If not specified, the message will be parsed twice. messageSyntaxVersion: '^8.22.4', diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 1091088c6..e6b12b0fa 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -21,14 +21,12 @@ "community": "Gemeinschaft", "continue-to-registration": "Weiter zur Registrierung", "current-community": "Aktuelle Gemeinschaft", - "members": "Mitglieder", "moderator": "Moderator", "moderators": "Moderatoren", "myContributions": "Meine Beiträge zum Gemeinwohl", "openContributionLinks": "öffentliche Beitrags-Linkliste", "openContributionLinkText": "Folgende {count} automatische Schöpfungen werden zur Zeit durch die Gemeinschaft „{name}“ bereitgestellt.", "other-communities": "Weitere Gemeinschaften", - "statistic": "Statistik", "submitContribution": "Beitrag einreichen", "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, @@ -307,11 +305,6 @@ "uppercase": "Großbuchstabe erforderlich." } }, - "statistic": { - "totalGradidoAvailable": "GDD insgesamt im Umlauf", - "totalGradidoCreated": "GDD insgesamt geschöpft", - "totalGradidoDecayed": "GDD insgesamt verfallen" - }, "success": "Erfolg", "time": { "days": "Tage", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 4971cdf39..07125eceb 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -21,14 +21,12 @@ "community": "Community", "continue-to-registration": "Continue to registration", "current-community": "Current community", - "members": "Members", "moderator": "Moderator", "moderators": "Moderators", "myContributions": "My contributions to the common good", "openContributionLinks": "open Contribution links list", "openContributionLinkText": "The following {count} automatic creations are currently provided by the \"{name}\" community.", "other-communities": "Other communities", - "statistic": "Statistics", "submitContribution": "Submit contribution", "switch-to-this-community": "Switch to this community" }, @@ -307,11 +305,6 @@ "uppercase": "One uppercase letter required." } }, - "statistic": { - "totalGradidoAvailable": "Total GDD in circulation", - "totalGradidoCreated": "Total GDD created", - "totalGradidoDecayed": "Total GDD decayed" - }, "success": "Success", "time": { "days": "Days", diff --git a/frontend/src/pages/InfoStatistic.spec.js b/frontend/src/pages/InfoStatistic.spec.js index b7b7b4a5c..e6475ed41 100644 --- a/frontend/src/pages/InfoStatistic.spec.js +++ b/frontend/src/pages/InfoStatistic.spec.js @@ -98,7 +98,7 @@ describe('InfoStatistic', () => { ) }) - it('calls getCommunityStatistics', () => { + it.skip('calls getCommunityStatistics', () => { expect(apolloQueryMock).toBeCalledWith( expect.objectContaining({ query: communityStatistics, @@ -115,12 +115,12 @@ describe('InfoStatistic', () => { wrapper = Wrapper() }) - it('toasts three error messages', () => { + it('toasts two error messages', () => { expect(toastErrorSpy).toBeCalledWith( 'listContributionLinks has no result, use default data', ) expect(toastErrorSpy).toBeCalledWith('searchAdminUsers has no result, use default data') - expect(toastErrorSpy).toBeCalledWith('communityStatistics has no result, use default data') + // expect(toastErrorSpy).toBeCalledWith('communityStatistics has no result, use default data') }) }) }) diff --git a/frontend/src/pages/InfoStatistic.vue b/frontend/src/pages/InfoStatistic.vue index 63562a658..309404f48 100644 --- a/frontend/src/pages/InfoStatistic.vue +++ b/frontend/src/pages/InfoStatistic.vue @@ -43,6 +43,7 @@ {{ supportMail }} +