@nettyapps/ntybase 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2808,11 +2808,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.11", ngImpo
2808
2808
  class NettyMenuService {
2809
2809
  http = inject(HttpClient);
2810
2810
  environmentProxy = inject(EnvironmentProxy);
2811
+ i18nService = inject(I18nService);
2811
2812
  menuName = signal('', ...(ngDevMode ? [{ debugName: "menuName" }] : []));
2812
2813
  menu = signal(null, ...(ngDevMode ? [{ debugName: "menu" }] : []));
2813
2814
  constructor() {
2814
2815
  effect(() => {
2815
2816
  const currentMenuName = this.menuName();
2817
+ const currentLang = this.i18nService.currentLang();
2816
2818
  if (!currentMenuName.trim()) {
2817
2819
  return;
2818
2820
  }
@@ -3167,14 +3169,9 @@ class Toolbar {
3167
3169
  }
3168
3170
  setLanguage(language) {
3169
3171
  this.i18nService.language = language;
3170
- setTimeout(() => {
3171
- this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => {
3172
- this.router.navigate([window.location.pathname]);
3173
- });
3174
- }, 500);
3175
3172
  setTimeout(() => {
3176
3173
  window.location.reload();
3177
- }, 500);
3174
+ }, 100);
3178
3175
  }
3179
3176
  getCurrentLanguageIcon() {
3180
3177
  switch (this.i18nService.language) {