Exceptionless.UI icon indicating copy to clipboard operation
Exceptionless.UI copied to clipboard

Ability to control the front-end language via local settings

Open BitBrewing opened this issue 4 years ago • 18 comments

刷新页面后,左侧导航重新变为英文。但是强制刷新(Ctrl+F5)则没有问题。

After refreshing the page, the left navigation changes to English again. But force refresh (Ctrl+F5) is not a problem.

BitBrewing avatar Jan 03 '22 06:01 BitBrewing

Are there any network errors shown in your Browers network tab loading the translation json files when you refresh (f5)?

niemyjski avatar Jan 03 '22 12:01 niemyjski

No errors.

BitBrewing avatar Jan 04 '22 02:01 BitBrewing

Can you try tracking this down by debugging this app. I'd probably set a breakpoint or logging here: https://github.com/exceptionless/Exceptionless.UI/blob/master/src/app.js#L71 and see what's happening when you refresh.

niemyjski avatar Jan 04 '22 11:01 niemyjski

ui

看GIF,刷新后变回英文的情况不是每次都会出现,我调试了UI源代码,出现英文的时候,lang = zh-cn。

Look at the GIF, the refresh back to English is not always the case, I debugged the UI source code, when the English appears, lang = zh-cn.

BitBrewing avatar Jan 05 '22 07:01 BitBrewing

I'm kind of clueless on why half would be in English and the other half not. Are there any errors in the console? Could you see if this is an issue in a browser that has no extensions. It would also help if there was an exact steps that reproduce it every single time, is it just refreshing the login page (can you reproduce in a different browser).

niemyjski avatar Jan 05 '22 14:01 niemyjski

I also encountered the same problem.

LEIRONGHUA avatar Jan 06 '22 01:01 LEIRONGHUA

I was using Edge browser before, then I purposely downloaded Firefox without any extensions and had the same problem, and no error occurred in the console.

BitBrewing avatar Jan 06 '22 02:01 BitBrewing

If one of you could debug this and figure out the root cause that would be amazing. I'm trying to remember how I changed my browsers local or if I just hard coded it.

niemyjski avatar Jan 06 '22 15:01 niemyjski

It is better to add a Chinese and English switch to the page

107295472 avatar Feb 19 '22 01:02 107295472

It may be nice if we stored this setting in local storage and checked it on startup with a fallback if the key is not in local storage or error accessing local storage. Any chance you'd be willing to submit a pr for this?

niemyjski avatar Feb 21 '22 14:02 niemyjski

angular doesn't

107295472 avatar Feb 23 '22 02:02 107295472

I'm not sure what you mean by angular doesn't?

niemyjski avatar Feb 23 '22 12:02 niemyjski

Can you please post your replies in english.

niemyjski avatar Feb 24 '22 12:02 niemyjski

can not speak English

107295472 avatar Feb 25 '22 00:02 107295472

Hello,

We do not speak Chinese, if you could use https://translate.google.com/ we will do our best to communicate and understand the request.

niemyjski avatar Feb 25 '22 14:02 niemyjski

How to turn off 404 records

107295472 avatar Feb 28 '22 02:02 107295472

How to turn off 404 records

Please create a new issue for any new question. You can turn off 404 collection through project configuration: https://exceptionless.com/docs/project-settings/#example

To discard all 404s in general you would use a wildcard *:

KEY: @@404:* VALUE: false

niemyjski avatar Feb 28 '22 14:02 niemyjski

thanks. request to remove cdn

107295472 avatar Mar 16 '22 05:03 107295472

We'd be willing to accept a pr for a language selector.

niemyjski avatar Mar 06 '23 14:03 niemyjski