Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] Switching app language to Norwegian Nynorsk breaks the app #630

Closed
FID02 opened this issue Feb 2, 2025 · 2 comments · Fixed by #632
Closed

[BUG] Switching app language to Norwegian Nynorsk breaks the app #630

FID02 opened this issue Feb 2, 2025 · 2 comments · Fixed by #632
Assignees
Labels
bug Something isn't working

Comments

@FID02
Copy link

FID02 commented Feb 2, 2025

Describe the bug
Thank you for adding Norwegian Nynorsk translations to this awesome app! Unfortunately, changing the app's language to Nynorsk makes the app display the full-screen message:

"Unable to load asset: "assets/translations/nn-NO.json".

This message is displayed upon every start of the app and there's no way to continue using the app. I have attached an app log further below.

To Reproduce
Steps to reproduce the behavior:

  • Install Openreads 2.8.0
  • Go to Settings > Language and select Nynorsk

Expected behavior
I'm assuming the app shouldn't break. 😄

Screenshots
Image

Additional info(please complete the following information):

  • App version: 2.8.0
  • App source (F-Droid, Google Play, Github, AppStore):
  • Manufacturer and model: Play Store
  • OS and version: Android 15, January security patch level. Tested on Pixel 8 and 6a, but I'm assuming it occurs on every Android device.

Additional context

type: logcat
osVersion: google/bluejay/bluejay:15/AP4A.250105.002/2025012700:user/release-keys
package: software.mdev.bookstracker:56, targetSdk 35
buffers: main,system,crash,events,kernel
level: error

--------- beginning of main
02-02 10:28:20.835  7441  7441 E ev.bookstracker: Not starting debugger since process cannot load the jdwp agent.
02-02 10:28:20.906  7441  7441 E cutils-trace: Error opening trace file: No such file or directory (2)
02-02 10:28:21.008  7441  7441 E software.mdev.bookstracker: Unable to find pattern file or unable to map it for am
02-02 10:28:51.193  7441  7553 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Invalid locale "nn_NO"
02-02 10:28:51.193  7441  7553 E flutter : #0      _throwLocaleError (package:intl/src/intl_helpers.dart:208)
02-02 10:28:51.193  7441  7553 E flutter : #1      verifiedLocale (package:intl/src/intl_helpers.dart:202)
02-02 10:28:51.193  7441  7553 E flutter : #2      new DateFormat (package:intl/src/intl/date_format.dart:267)
02-02 10:28:51.193  7441  7553 E flutter : #3      new DateFormat.yMMMMd (package:intl/src/intl/date_format.dart:551)
02-02 10:28:51.193  7441  7553 E flutter : #4      _initDateFormat (package:openreads/main.dart:262)
02-02 10:28:51.193  7441  7553 E flutter : <asynchronous suspension>
02-02 10:28:51.193  7441  7553 E flutter : 
02-02 10:28:57.444  7589  7589 E ev.bookstracker: Not starting debugger since process cannot load the jdwp agent.
02-02 10:28:57.509  7589  7589 E cutils-trace: Error opening trace file: No such file or directory (2)
02-02 10:28:57.607  7589  7589 E software.mdev.bookstracker: Unable to find pattern file or unable to map it for am
02-02 10:28:57.789  7589  7640 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Invalid locale "nn_NO"
02-02 10:28:57.789  7589  7640 E flutter : #0      _throwLocaleError (package:intl/src/intl_helpers.dart:208)
02-02 10:28:57.789  7589  7640 E flutter : #1      verifiedLocale (package:intl/src/intl_helpers.dart:202)
02-02 10:28:57.789  7589  7640 E flutter : #2      new DateFormat (package:intl/src/intl/date_format.dart:267)
02-02 10:28:57.789  7589  7640 E flutter : #3      new DateFormat.yMMMMd (package:intl/src/intl/date_format.dart:551)
02-02 10:28:57.789  7589  7640 E flutter : #4      _initDateFormat (package:openreads/main.dart:262)
02-02 10:28:57.789  7589  7640 E flutter : <asynchronous suspension>
02-02 10:28:57.789  7589  7640 E flutter : 
02-02 10:29:07.003  7716  7716 E ev.bookstracker: Not starting debugger since process cannot load the jdwp agent.
02-02 10:29:07.067  7716  7716 E cutils-trace: Error opening trace file: No such file or directory (2)
02-02 10:29:07.166  7716  7716 E software.mdev.bookstracker: Unable to find pattern file or unable to map it for am
02-02 10:29:07.350  7716  7767 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Invalid locale "nn_NO"
02-02 10:29:07.350  7716  7767 E flutter : #0      _throwLocaleError (package:intl/src/intl_helpers.dart:208)
02-02 10:29:07.350  7716  7767 E flutter : #1      verifiedLocale (package:intl/src/intl_helpers.dart:202)
02-02 10:29:07.350  7716  7767 E flutter : #2      new DateFormat (package:intl/src/intl/date_format.dart:267)
02-02 10:29:07.350  7716  7767 E flutter : #3      new DateFormat.yMMMMd (package:intl/src/intl/date_format.dart:551)
02-02 10:29:07.350  7716  7767 E flutter : #4      _initDateFormat (package:openreads/main.dart:262)
02-02 10:29:07.350  7716  7767 E flutter : <asynchronous suspension>
02-02 10:29:07.350  7716  7767 E flutter : 

@FID02 FID02 added the bug Something isn't working label Feb 2, 2025
@mateusz-bak
Copy link
Owner

Hi, thank you for the report. I'm looking into it now

@mateusz-bak mateusz-bak linked a pull request Feb 2, 2025 that will close this issue
@mateusz-bak
Copy link
Owner

I fixed the issue, will release new version this week.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants