Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language settings via graph #9924

Merged
merged 30 commits into from
Nov 15, 2023
Merged

Language settings via graph #9924

merged 30 commits into from
Nov 15, 2023

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Nov 9, 2023

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:

  • ...

Copy link

update-docs bot commented Nov 9, 2023

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 on lines -28 to -34
he: 'עִבְרִית',
it: 'Italiano',
pl: 'Polski',
ru: 'русский язык',
sk: 'Slovenčina',
sq: 'Shqipja',
tr: 'Türkçe'
Copy link
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
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
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

@AlexAndBear AlexAndBear changed the title Language settings graph Language settings via graph Nov 10, 2023
Copy link
Contributor

@lookacat lookacat left a comment

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 👍🏼

Copy link
Collaborator

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

LGTM mostly 👍

packages/web-runtime/src/pages/account.vue Outdated Show resolved Hide resolved
packages/web-runtime/src/pages/account.vue Outdated Show resolved Hide resolved
@AlexAndBear AlexAndBear force-pushed the language-settings-graph branch 2 times, most recently from 91f9614 to 3454d03 Compare November 15, 2023 13:17
Copy link

sonarcloud bot commented Nov 15, 2023

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
3 of 4 checks passed
@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 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.

Provide alternative to store user language setting
4 participants