Skip to content

How to change the left-side menu default language? #6021

Open
@beeeecky223

Description

@beeeecky223

Issue type

I'm submitting a ... (check one with "x")

  • bug report
  • feature request
  • question about the decisions made in the repository

Issue description

Current behavior:
Hi I'm using ngx-admin for my company webpage, the original default language was English but I've changed to Japanese.
And we provide 2 available languages: English & Japanese only.
However everytime when I access to the webpage: only the main page (right-side) shows Japanese, the left-side menu keeps showing English and I need to choose "Japanese" from the language pulldown-box so that left-side menu will change to Japanese accordingly.

Expected behavior:
I hope the left-side menu will also show Japanese which is our default language, and we don't need to do anything to the language pulldown-box every time.

Steps to reproduce:

I've changed the content of "main.5ea245ffa0935998.js" but I think futher changes are needed.
Could anyone give advice on how to make the changes?

Related code:

main.5ea245ffa0935998.js
default language of left-side menu

var Fe = f(64205),
	ft = f(42466);
let Ze = (() => {
	class p {
	 constructor(o, h, M) {
		this.analytics = o, this.seoService = h, this.translate = M, M.addLangs(
			["Japanese","English"]), M.setDefaultLang("Japanese");
			const x = M.getBrowserLang();
			M.use(x.match(/English|Japanese/) ? x : "Japanese")
		}
		ngOnInit() {
		this.analytics.trackPageViews(), this.seoService.trackCanonicalChanges()
			}
		}
		return p.\u0275fac = function(o) {
		return new(o || p)(_.Y36(z), _.Y36(rt), _.Y36(ft.sK))
		}, p.\u0275cmp = _.Xpm({
		type: p,
		selectors: [
		["ngx-app"]
		],
		decls: 1,
		vars: 0,
		template: function(o, h) {
		1 & o && _._UZ(0, "router-outlet")
		},
		directives: [w.lC],
		encapsulation: 2
	}), p
})();

Other information:

It is appreciated that anyone could share how and where (or which file) to change the default language of the left-side menu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions