You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm requesting introducing an optional parameter in the ngx-translate directive (e.g., translate) to allow developers to disable translation functionality directly in the HTML template. This can be particularly useful for dynamic scenarios where translation is conditionally required for certain elements.
Use Case
Conditional Translation: Developers can disable translations for specific HTML elements based on runtime conditions or user preferences.
Dynamic Behavior: Applications that adapt to varying user settings or configurations can benefit from toggling translation functionality at the template level.
Specific Component Use Case: I have a component where, in some cases, I need it to display translated content, while in other cases, I want it to remain untranslated. Having a built-in directive parameter would simplify this dynamic behavior without requiring workarounds like duplicating code.
Example Usage :
Benefits
Provides greater flexibility and control over translation behavior in templates.
Reduces the need for workarounds or custom directive implementations to disable ngx-translate.
Enhances developer experience by integrating the functionality directly into the existing directive.
Notes
The disableTranslation parameter should default to false to maintain backward compatibility.
The text was updated successfully, but these errors were encountered:
I'm requesting introducing an optional parameter in the ngx-translate directive (e.g., translate) to allow developers to disable translation functionality directly in the HTML template. This can be particularly useful for dynamic scenarios where translation is conditionally required for certain elements.
Use Case
Example Usage :
Benefits
Notes
The disableTranslation parameter should default to false to maintain backward compatibility.
The text was updated successfully, but these errors were encountered: