1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00
miniflux-v2/internal
Julien Voisin 181e1341e1
refactor(locale): introspect the translation files at load time
Since Go doesn't support unions, and because the translation format is a bit
wacky with the same field having multiple types, we must resort to
introspection to switch between single-item translation (for singular), and
multi-items ones (for plurals).

Previously, introspection was done at runtime, which is not only slow, but will
also only catch typing errors while trying to use the translations. The current
approach is to use a struct with a different field per possible type, and
implement a custom unmarshaller to dispatch the translations to the right one.
This should marginally reduce the memory consumption since interface-boxing
doesn't happen anymore, speed up the translations matching, and enforce proper
typing earlier. This also allows us to remove a bunch of now-useless tests.
2025-07-31 19:10:14 -07:00
..
api fix(filter): remove \r\n in rule parsing 2025-07-16 21:03:53 -07:00
cli refactor(http): rename package from httpd to server for consistency 2025-06-20 13:15:13 -07:00
config refactor(config): don't check random.Read's return value 2025-07-31 18:03:53 -07:00
crypto perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
database refactor(database): get rid of the sqlite tentative 2025-07-02 17:18:03 -07:00
fever fix(fever): correct sorting direction when using max_id argument 2024-08-17 18:08:01 -07:00
googlereader refactor(googlereader): rename/unexport response types and functions 2025-07-23 20:36:04 -07:00
http refactor(misc): make use of type constraints where possible 2025-07-31 18:59:55 -07:00
integration feat(integration): use Bearer token authorization instead of cookie for Linkwarden client 2025-07-22 21:13:48 -07:00
locale refactor(locale): introspect the translation files at load time 2025-07-31 19:10:14 -07:00
mediaproxy refactor(model): add test coverage and simplify ProxifyEnclosureURL 2025-07-07 18:41:44 -07:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model refactor(model): add test coverage and simplify ProxifyEnclosureURL 2025-07-07 18:41:44 -07:00
oauth2 feat(oidc): use preferred_username first instead of email claim 2025-06-08 18:05:47 -07:00
proxyrotator refactor(proxyrotator): simplify mutex handling 2025-07-07 15:52:16 -07:00
reader refactor(filter): parse and merge filters only once per refresh 2025-07-30 21:34:03 -07:00
storage fix(storage): ensure strings are truncated to fit tsvector size limit and remain valid UTF-8 2025-07-20 13:42:58 -07:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template feat(ui): add icons to main menu 2025-07-30 19:12:50 -07:00
timezone perf(timzone): cache getLocation's results 2025-06-08 13:50:18 -07:00
ui feat(ui): add icons to main menu 2025-07-30 19:12:50 -07:00
urllib perf(sanitizer): improve the performances of the sanitizer (#3497) 2025-07-07 15:21:13 -07:00
validator perf(validator): slightly optimize a regex 2025-06-10 19:20:58 -07:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker refactor: avoid logging twice the feed errors in the background worker 2025-04-06 15:39:40 -07:00