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

[Snap] Implement Localisation Settings #3153

Open
benfrancis opened this issue Aug 21, 2024 · 0 comments
Open

[Snap] Implement Localisation Settings #3153

benfrancis opened this issue Aug 21, 2024 · 0 comments
Labels
snap Issues relating to the snap package task
Milestone

Comments

@benfrancis
Copy link
Member

benfrancis commented Aug 21, 2024

STR:

  • In web interface navigate to Main Menu -> Settings - Localisation

Expected:

  • Country, Timezone, Language, and Temperature Units preferences displayed
  • Can change each preference by selecting an item in the dropdown

Actual:

  • Country and Timezone dropdowns are unpopulated
  • Language and Temperature dropdowns are populated but changing them doesn't seem to have any effect

From the browser console when setting Language:

Uncaught (in promise) Error: 500
    getJson api.ts:44
    promise callback*getJson api.ts:42
    getPushKey api.ts:474
    r notifications.js:23
    i thing-model.js:324
    a notifications.js:16
    promise callback*i thing-model.js:324
    a notifications.js:16
    s notifications.js:16
    s notifications.js:16
    onReady notifications.js:16
    promise callback*96710 app.js:619
    Webpack 3
api.ts:44:14

Also noticed network errors in the browser console during first time setup:

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.

XHRPUT
http://localhost:8080/settings/localization/language
[HTTP/1.1 401 Unauthorized 1ms]

XHRGET
http://localhost:8080/settings/localization/units
[HTTP/1.1 401 Unauthorized 2ms]

Uncaught (in promise) Error: 401
    getJson http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    promise callback*getJson http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    getUnits http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    e http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    promise callback*e http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    96710 http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    n http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    <anonymous> http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
    <anonymous> http://localhost:8080/bundle/6f3f2b9653370ff453ac-app.js:8
6f3f2b9653370ff453ac-app.js:8:946120

XHRGET
http://localhost:8080/settings/localization/language
[HTTP/1.1 401 Unauthorized 2ms]

On one occasion I also noticed an error in run-app.log after creating a username and password during first time setup:

2024-08-20 19:00:20.691 ERROR : Failed to set localization.language to 'en-GB'

@benfrancis benfrancis added bug snap Issues relating to the snap package labels Aug 21, 2024
@benfrancis benfrancis added this to the 2.0 milestone Aug 21, 2024
@benfrancis benfrancis changed the title [Snap] Localisation settings don't work [Snap] Implement Localisation settings Aug 22, 2024
@benfrancis benfrancis added task and removed bug labels Aug 22, 2024
@benfrancis benfrancis changed the title [Snap] Implement Localisation settings [Snap] Implement localisation settings Aug 22, 2024
@benfrancis benfrancis changed the title [Snap] Implement localisation settings [Snap] Implement Localisation Settings Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap Issues relating to the snap package task
Projects
Status: Product Backlog
Development

No branches or pull requests

1 participant