Commit graph

8 commits

Author SHA1 Message Date
Sylvain Bellemare
b83800ba5a
fix: use runtime CARGO_MANIFEST_DIR
Problem: env!() bakes the path at compile time,
so it breaks when the binary runs from a different
location (e.g. a Guix/Nix sandbox or container).

Solution: use std::env::var() to read it at runtime.
2026-03-18 10:50:09 +09:00
bunnie
a8d9b53c26 Fix for #779
This patch removes the option to scan out-of-tree json files
for locales resolution.

When the time comes to have to incorporate out-of-tree apps
with locales, a method should be devised that doesn't expand
the dependency surface of the project beyond the immediate
repository.
2026-01-17 01:33:16 +08:00
bunnie
c7bfe8fe70 code formatting and typo fix on locales build script 2025-04-29 03:02:33 +08:00
David Kotval
fa20e3c649 wip: debugging sigchat build fail due to missing translations 2024-01-24 16:46:08 +00:00
bunnie
a4752dbb59 app manifest and auto-gen infrastructure 2022-02-02 16:18:06 +08:00
bunnie
a8282413ef make locale builds only take in i18n.json files
because .json files are splattered everywhere and this causse troubles.
2022-01-04 21:58:04 +08:00
bunnie
c0ce66ee51 fix permissions. windows is sort of stupid and makes everything +x 2021-08-19 23:34:29 +08:00
Sean Cross
207662414e locales: generate locales as part of normal build
This makes `locales` its own package. As a result, the system will not
rebuild the locales unless necessary.

Additionally, the `generate-locales` command has been updated to simply
force a rebuild of this file in order to keep the previous behavior.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-04 12:19:06 +08:00
Renamed from xtask/src/generate_locales.rs (Browse further)