Skip to content

Disable language selection UI & auto-discovery#175

Open
cmyui wants to merge 1 commit into
masterfrom
disable-language-selection
Open

Disable language selection UI & auto-discovery#175
cmyui wants to merge 1 commit into
masterfrom
disable-language-selection

Conversation

@cmyui

@cmyui cmyui commented Oct 28, 2024

Copy link
Copy Markdown
Member

Removes the language selector from the website footer, and removes language discovery/sets all sessions to "en".

Turning on any language is a mess of 1/4-translated pages, and I think it's much better to disable, and only consider re-enabling once it's in a respectable state (e.g. after we have tooling to generate *.po files, and we hire a set of translators to translate the unmapped entries).

return localeEngine.Get(GetLang(c), s, args...)
}

func getQuality(s string) float32 {

@cmyui cmyui Oct 28, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this stuff in from /internal/locale/parse_header.go, and removed it; seems superfluous

Comment thread app/sessions/sessions.go

ctx.Language = lu.GetLanguageFromGin(c)
// XXX: Disabled Oct 2024 due to very poor coverage
ctx.Language = "en"

@cmyui cmyui Oct 28, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See available languages (taken from cost) below:

{"de", "pl", "it", "es", "ru", "fr", "nl", "ro", "fi", "sv", "vi", "ko"}

@lenforiee

Copy link
Copy Markdown
Member

Perhaps we can hide it behind amplitude flag instead of completely commenting it out?

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.

2 participants