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

DO NOT MERGE!! [WF-2017] Allow overriding translations from parent components or app using pro… #388

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

tcorral
Copy link
Collaborator

@tcorral tcorral commented Jan 27, 2025

DO NOT MERGE!!!

@tcorral tcorral changed the title Allow overriding translations from parent components or app using pro… [WF-2017] Allow overriding translations from parent components or app using pro… Jan 28, 2025
@tcorral tcorral marked this pull request as ready for review January 28, 2025 13:50
@tcorral tcorral requested review from igord and RAJESH-GN January 28, 2025 13:50
@tcorral tcorral changed the title [WF-2017] Allow overriding translations from parent components or app using pro… [WF-2017] DO NOT MERGE!! Allow overriding translations from parent components or app using pro… Jan 28, 2025
@tcorral tcorral changed the title [WF-2017] DO NOT MERGE!! Allow overriding translations from parent components or app using pro… DO NOT MERGE!! [WF-2017] Allow overriding translations from parent components or app using pro… Jan 28, 2025
'main.entitlements-test-nested-groups.text': string;
'main.entitlements-test-using-not-operators-on-groups.text': string;
'main.entitlements-test-using-multiple-not-operators-on-groups.text': string;
[key: string]: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would avoid this one if we have typed the whole translations @tcorral

public layoutService: LayoutService,
@Inject(APP_TRANSLATIONS)
private readonly overridingTranslations: Partial<AppTranslations>,
Copy link
Collaborator

@RAJESH-GN RAJESH-GN Feb 3, 2025

Choose a reason for hiding this comment

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

why should this be Partial please try to have this as a last resource to have Partials as it might break so many things?

'user-accounts.view-transactions': string;
'user-accounts.add-favorites': string;
'user-accounts.remove-favorites': string;
[key: string]: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here we should not allow this if we have types written

@@ -1 +1,5 @@
export { TextFilterComponent } from './lib/components/text-filter/text-filter.component';
export {
Copy link
Collaborator

Choose a reason for hiding this comment

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

import of the actual translation is missing

Copy link
Collaborator

Choose a reason for hiding this comment

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

there are couple of index.ts files where the index files are missing the export of actual translations can u please update the imports of those files please

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.

3 participants