Skip to content

Conversation

@otrok7
Copy link
Collaborator

@otrok7 otrok7 commented Sep 25, 2025

This is a low impact way of getting multilingual support into BMLT. It is the method with the smallest changes to the UI and backend, but I think we will want to keep the behavior even when there is time and energy to implement more expensive methods, eg, something like the UI used for formats.

The main idea is this: when assembling the meeting object, we look at the lang_enum field (previously ignored). If there is more than one entry for the same key, we chose the one that matches the language that the user selected during login. If there are no matches, we choose the one that matches the app.locale. If there are still no matches, we take whicheber one comes first. For the old API, we use the lang_enum specified in the query string. To this all works for crouton, bread, etc.

Similarly, when the user writes something to the DB, we use his selected language. Instead of erasing all the meeting_data before writing the new data, we erase only those entries whose language matches.

This means to translate, you need to log in using the target language. When you do a meeting search, you'll see everything in the original language. You can then overwrite fields as appropriate and then save.

I'm not sure this is a worse UI than the one for formats. It fits to having a translater that goes though a bunch of meetings, rather than expecting the person entering the meeting to be multilingual.

@otrok7 otrok7 marked this pull request as draft September 25, 2025 13:09
otrok7 and others added 25 commits September 26, 2025 15:49
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.3 to 7.1.9.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.9/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.9
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.9 to 7.1.11.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.11
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
pjaudiomv and others added 30 commits December 13, 2025 23:11
* fix duplicate format keys in initial schema and in existing databases
* add orphaned format ids migration

* use while loop and collections

* cleaner

* rm tmp console commands
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.

6 participants