Panly API docsstaging

Screens / Language

Language

English, Bahasa Indonesia or follow the device (PAN-93), saved on the account.

App routes
/settings/language
Access
settings.manage, items.manage, stock.manage, expenses.manage
Screen code
lib/screens/settings/language_settings_page.dart
lib/screens/settings/widgets/language_card.dart
lib/screens/settings/widgets/language_sheet.dart
lib/core/localisation/language_controller.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (1)

CallWhy the screen makes itWhere in the app code
PATCH /v1/me
Update my account preferences (preferred language)
Language card: the chosen language (`language`, or none for follow device) is saved on the account after it is applied and stored on the device. A failure keeps the choice on the device and shows a retry note
On the next sign-in the account's language wins when it has one.
lib/screens/settings/widgets/language_sheet.dart:55
lib/core/localisation/language_controller.dart:93
lib/data/repositories/language_repository.dart:13

Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.