Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Language settings via graph - #9924

Merged
AlexAndBear merged 30 commits into
masterfrom
language-settings-graph
Nov 15, 2023
Merged

AlexAndBear merged 30 commits into
masterfrom
language-settings-graph

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Nov 9, 2023 •

Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@update-docs

update-docs Bot commented Nov 9, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Comment thread packages/web-client/src/graph.ts Resolved
Comment on lines -28 to -34
he: 'עִבְרִית',
it: 'Italiano',
pl: 'Polski',
ru: 'русский язык',
sk: 'Slovenčina',
sq: 'Shqipja',
tr: 'Türkçe'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed languages that are not exposed via settings service, for now

if (currentLanguage.indexOf('_')) {
currentLanguage = currentLanguage.split('_')[0]
if (currentLanguage.indexOf('-')) {
currentLanguage = currentLanguage.split('-')[0]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

switch to ISO Language code

value: unref(spacesEnabled) ? $gettext('Personal') : $gettext('All files')
})
}
store.commit('SET_LANGUAGE', language.current)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we didn't do that before, but I think we should

Comment thread packages/web-client/src/graph.ts Resolved
@AlexAndBear AlexAndBear changed the title Language settings graph Language settings via graph Nov 10, 2023

@lookacat lookacat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good to me 👍🏼

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM mostly 👍

@AlexAndBear
AlexAndBear force-pushed the language-settings-graph branch 2 times, most recently from 91f9614 to 3454d03 Compare November 15, 2023 13:17
@JammingBen
JammingBen force-pushed the language-settings-graph branch from 05987a7 to bbf8cea Compare November 15, 2023 14:33
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

67.6% 67.6% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@AlexAndBear
AlexAndBear merged commit 3baa5fe into master Nov 15, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the language-settings-graph branch November 15, 2023 16:42
ownclouders pushed a commit that referenced this pull request Nov 16, 2023
AlexAndBear added a commit that referenced this pull request Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide alternative to store user language setting

4 participants