Skip to content

Conversation

@rbalet
Copy link
Collaborator

@rbalet rbalet commented Jul 7, 2025

Description

Refactor the following

export const ISOLATE_TRANSLATE_SERVICE = new InjectionToken<string>("ISOLATE_TRANSLATE_SERVICE");
export const USE_DEFAULT_LANG = new InjectionToken<boolean>("USE_DEFAULT_LANG");
export const DEFAULT_LANGUAGE = new InjectionToken<Language>("DEFAULT_LANGUAGE");
export const USE_EXTEND = new InjectionToken<boolean>("USE_EXTEND");

Into one unique injectionToken

export const TRANSLATE_CONFIG = new InjectionToken<{
  defaultLanguage?: Language;
  extend: boolean;
  isolate: boolean;
  useDefaultLang: boolean;
}>("TRANSLATE_CONFIG");

@CodeAndWeb CodeAndWeb merged commit e3bd91e into develop Jul 8, 2025
6 checks passed
@CodeAndWeb CodeAndWeb deleted the refactor-inject-token branch July 8, 2025 09:50
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