Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Init script to detect broken i18n keys #7329

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pavinduLakshan
Copy link
Contributor

Purpose

$subject

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

@pavinduLakshan pavinduLakshan changed the title Init script to detect broken i18n keys [WIP] Init script to detect broken i18n keys Jan 19, 2025
@pavinduLakshan pavinduLakshan marked this pull request as draft January 19, 2025 03:48
import { Project, SyntaxKind } from "ts-morph";

const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__dirname is not supported out of the box for .mjs files, hence this declaration

Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.98%. Comparing base (ab8f8db) to head (2bce06f).
Report is 35 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7329   +/-   ##
=======================================
  Coverage   41.98%   41.98%           
=======================================
  Files          42       42           
  Lines         936      936           
  Branches      227      233    +6     
=======================================
  Hits          393      393           
  Misses        499      499           
  Partials       44       44           
Flag Coverage Δ
@wso2is/core 41.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@wso2-jenkins-bot
Copy link
Contributor

⚠️ No Changeset found

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.

If these changes should result in a version bump, you need to add a changeset.

Refer Release Documentation to learn how to add a changeset.

@pavinduLakshan
Copy link
Contributor Author

The following files contain i18n that couldn't be resolved by the script. There may be more.

features/admin.roles.v2/components/edit-role/edit-role-common/role-api-resources-list-item.tsx

features/admin.console-settings.v1/pages/console-administrator-edit-page.tsx

features/admin.sms-templates.v1/pages/sms-customization.tsx

features/admin.claims.v1/pages/attribute-mappings.tsx

features/admin.claims.v1/pages/local-claims.tsx

features/admin.roles.v2/components/edit-role/edit-role-common/role-api-resources-list-item.tsx

features/admin.identity-providers.v1/components/forms/authenticators/saml-authenticator-form.tsx

features/admin.actions.v1/components/action-endpoint-config-form.tsx

features/admin.feature-gate.v1/components/feature-flag-label.tsx

admin.connections.v1/components/create/enterprise-connection-create-wizard.tsx#L379

features/admin.connections.v1/components/create/custom-authentication-create-wizard.tsx

features/admin.connections.v1/pages/connection-templates.tsx#L435

features/admin.core.v1/components/header.tsx#L229

features/admin.users.v1/components/users-list.tsx#L283

features/admin.users.v1/components/wizard/bulk-import-user-wizard.tsx#L575

features/admin.users.v1/components/user-profile.tsx#

features/admin.users.v1/pages/users.tsx

features/admin.applications.v1/components/settings/sign-on-methods/step-based-flow/add-authenticator-modal.tsx

features/admin.applications.v1/components/settings/sign-on-methods/script-based-flow/script-based-flow.tsx#L1300

features/admin.applications.v1/components/forms/inbound-oidc-form.tsx#L2233

features/admin.applications.v1/components/forms/general-details-form.tsx#L596

features/admin.secrets.v1/components/secret-value-form.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants