diff --git a/.github/workflows/pr_ci_i18n.yaml b/.github/workflows/pr_ci_i18n.yaml index 1649d8407..dd863ea56 100644 --- a/.github/workflows/pr_ci_i18n.yaml +++ b/.github/workflows/pr_ci_i18n.yaml @@ -25,11 +25,21 @@ jobs: with: python-version: "3.11" - - name: Execute i18n Values Check + - name: Execute i18n Key Identifiers Check working-directory: ./frontend/i18n/check - run: python i18n_check_values.py + run: python i18n_check_key_identifiers.py - - name: Execute i18n Keys Check + - name: Execute i18n Unused Keys Check if: always() working-directory: ./frontend/i18n/check - run: python i18n_check_keys.py + run: python i18n_check_unused_keys.py + + - name: Execute i18n Non Source Keys Check + if: always() + working-directory: ./frontend/i18n/check + run: python i18n_check_non_source_keys.py + + - name: Execute i18n Repeat Values Check + if: always() + working-directory: ./frontend/i18n/check + run: python i18n_check_repeat_values.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f45cb9eb5..52324d8f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files + - id: pretty-format-json - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.0 diff --git a/README.md b/README.md index 60c948dfa..23d5d5a9c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![nuxt](https://img.shields.io/badge/Nuxt%203-41b883.svg?logo=nuxt.js&logoColor=ffffff)](#tech-stack) [![vue](https://img.shields.io/badge/Vue%203-41b883.svg?logo=vue.js&logoColor=ffffff)](#tech-stack) [![tailwind](https://img.shields.io/badge/Tailwind%203-38BDF8.svg?logo=tailwindcss&logoColor=ffffff)](#tech-stack) -[![license](https://img.shields.io/github/license/activist-org/activist-iOS.svg?label=%20)](https://github.com/activist-org/activist/blob/main/LICENSE.txt) +[![license](https://img.shields.io/github/license/activist-org/activist.svg?label=%20)](https://github.com/activist-org/activist/blob/main/LICENSE.txt) [![coc](https://img.shields.io/badge/Contributor%20Covenant-ff69b4.svg)](https://github.com/activist-org/activist/blob/main/.github/CODE_OF_CONDUCT.md) [![instagram](https://img.shields.io/badge/Instagram-8134AF.svg?logo=instagram&logoColor=ffffff)](https://instagram.com/activist_org) [![weblate](https://img.shields.io/badge/Weblate-144D3F.svg?logo=weblate&logoColor=ffffff)](https://hosted.weblate.org/projects/activist/activist) diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index 646533952..1e181607f 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -54,6 +54,9 @@ Vue files (`.vue`) are Single-File Components that have ` diff --git a/frontend/components/sidebar/left/SidebarLeft.vue b/frontend/components/sidebar/left/SidebarLeft.vue index 1f665941e..b0fb62a9f 100644 --- a/frontend/components/sidebar/left/SidebarLeft.vue +++ b/frontend/components/sidebar/left/SidebarLeft.vue @@ -197,21 +197,21 @@ const filters = { title: "", name: "eventLocationSearch", type: "search", - placeholder: "components.sidebar-left.location-search-placeholder", + placeholder: "components.sidebar_left.location_search_placeholder", }, locationSearch: { sidebarType: [SidebarType.ORGANIZATION_FILTER, SidebarType.SEARCH], title: "Location", name: "locationSearch", type: "search", - placeholder: "components.sidebar-left.location-search-placeholder", + placeholder: "components.sidebar_left.location_search_placeholder", }, organizationSearch: { sidebarType: [SidebarType.EVENT_FILTER], title: "Organization", name: "organizationSearch", type: "search", - placeholder: "components.sidebar-left.orgs-search-placeholder", + placeholder: "components.sidebar_left.orgs_search_placeholder", }, topic: { sidebarType: [ diff --git a/frontend/components/sidebar/left/SidebarLeftHeader.vue b/frontend/components/sidebar/left/SidebarLeftHeader.vue index 03fba9e10..86fc11775 100644 --- a/frontend/components/sidebar/left/SidebarLeftHeader.vue +++ b/frontend/components/sidebar/left/SidebarLeftHeader.vue @@ -44,7 +44,7 @@ 'pb-1 pl-0.5': sidebar.collapsedSwitch == true, }" :aria-label=" - $t('components.sidebar-left-header.sidebar-collapse-aria-label') + $t('components.sidebar_left_header.sidebar_collapse_aria_label') " > diff --git a/frontend/components/sidebar/left/SidebarLeftIndex.vue b/frontend/components/sidebar/left/SidebarLeftIndex.vue index a69de145e..d1fca09f3 100644 --- a/frontend/components/sidebar/left/SidebarLeftIndex.vue +++ b/frontend/components/sidebar/left/SidebarLeftIndex.vue @@ -29,7 +29,7 @@ class="elem-shadow-sm" :imgURL="logoUrl" :alt=" - $t('components._global.entity-logo', { + $t('_global.entity_logo', { entity_name: name, }) " @@ -61,7 +61,7 @@ class="elem-shadow-sm" eventType="action" :alt=" - $t('components._global.entity-logo', { + $t('_global.entity_logo', { entity_name: name, }) " diff --git a/frontend/components/sidebar/left/SidebarLeftSelector.vue b/frontend/components/sidebar/left/SidebarLeftSelector.vue index 819662a86..9b3b0211f 100644 --- a/frontend/components/sidebar/left/SidebarLeftSelector.vue +++ b/frontend/components/sidebar/left/SidebarLeftSelector.vue @@ -11,11 +11,11 @@ v-if="sidebar.collapsed == false || sidebar.collapsedSwitch == false" class="select-none whitespace-nowrap" > - {{ $t("_global.navigate-to") }} + {{ $t("_global.navigate_to") }} {{ $t(label) }}

{{ $t("_global.navigate-to") }} {{ $t(label) }}{{ $t("_global.navigate_to") }} {{ $t(label) }} diff --git a/frontend/components/sidebar/right/SidebarRightHamburger.vue b/frontend/components/sidebar/right/SidebarRightHamburger.vue index 8d09e7da0..9b38c6ff2 100644 --- a/frontend/components/sidebar/right/SidebarRightHamburger.vue +++ b/frontend/components/sidebar/right/SidebarRightHamburger.vue @@ -4,7 +4,7 @@ @click="$emit('toggle')" id="sidebar-right-hamburger" class="focus-brand group relative z-50 outline-offset-4" - :aria-label="$t('components.sidebar-right-hamburger.collapse-aria-label')" + :aria-label="$t('components.sidebar_right_hamburger.collapse_aria_label')" >
    -
  • {{ $t("components.tooltip-discussion-warning.names") }}
  • -
  • {{ $t("components.tooltip-discussion-warning.home-addresses") }}
  • -
  • {{ $t("components.tooltip-discussion-warning.phone-numbers") }}
  • -
  • {{ $t("components.tooltip-discussion-warning.email-addresses") }}
  • +
  • {{ $t("components.tooltip_discussion_warning.names") }}
  • +
  • {{ $t("components.tooltip_discussion_warning.home_addresses") }}
  • +
  • {{ $t("components.tooltip_discussion_warning.phone_numbers") }}
  • +
  • {{ $t("components.tooltip_discussion_warning.email_addresses") }}
diff --git a/frontend/components/tooltip/TooltipPasswordRequirements.vue b/frontend/components/tooltip/TooltipPasswordRequirements.vue index c351c5a37..298c00872 100644 --- a/frontend/components/tooltip/TooltipPasswordRequirements.vue +++ b/frontend/components/tooltip/TooltipPasswordRequirements.vue @@ -3,7 +3,7 @@ class="z-20 min-w-[200px] pb-4 pt-2 transition delay-150 ease-in-out md:min-w-[450px]" > {{ - $t("components.tooltip-password-requirements.password-rules-message") + $t("components.tooltip_password_requirements.password_rules_message") }}
diff --git a/frontend/components/tooltip/TooltipSignIn.vue b/frontend/components/tooltip/TooltipSignIn.vue index bfdb033fe..055e597f2 100644 --- a/frontend/components/tooltip/TooltipSignIn.vue +++ b/frontend/components/tooltip/TooltipSignIn.vue @@ -1,24 +1,24 @@ diff --git a/frontend/pages/about/roadmap.vue b/frontend/pages/about/roadmap.vue index 6db8dd720..91dc7d59c 100644 --- a/frontend/pages/about/roadmap.vue +++ b/frontend/pages/about/roadmap.vue @@ -7,7 +7,7 @@

{{ $t("_global.roadmap") }} @@ -19,41 +19,41 @@ size="1.25em" />

- {{ $t("pages._global.visit-source-code-pt-1") }} + {{ $t("pages._global.visit_source_code_pt_1") }} - {{ $t("pages._global.visit-source-code-pt-2") }} + {{ $t("pages._global.visit_source_code_pt_2") }} - {{ $t("pages._global.visit-source-code-pt-3") }} + {{ $t("pages._global.visit_source_code_pt_3") }}

- {{ $t("pages.about.roadmap.section-1-paragraph-1") }} + {{ $t("pages.about.roadmap.section_1_paragraph_1") }}

- {{ $t("pages.about.roadmap.section-1-paragraph-2-1") }} + {{ $t("pages.about.roadmap.section_1_paragraph_2_1") }} - {{ $t("pages.about.roadmap.section-1-paragraph-2-2") }} + {{ $t("pages.about.roadmap.section_1_paragraph_2_2") }} - {{ $t("pages.about.roadmap.section-1-paragraph-2-3") }} - {{ $t("pages.about.roadmap.section-1-paragraph-2-4") }} + {{ $t("pages.about.roadmap.section_1_paragraph_2_3") }} + {{ $t("pages.about.roadmap.section_1_paragraph_2_4") }}
diff --git a/frontend/pages/auth/reset-password.vue b/frontend/pages/auth/reset-password.vue index 2687695b6..cba8ef84c 100644 --- a/frontend/pages/auth/reset-password.vue +++ b/frontend/pages/auth/reset-password.vue @@ -1,24 +1,24 @@