Native menu bar, provider status strings, export dialog, layer panel, and image-panel popovers now resolve through op-i18n instead of hardcoded English; the three ad-hoc mini locale tables fold into the canonical catalogs. New *_panel.rs overflow shards keep every table under the 800-line cap (catalog at 1098 keys). The desktop menu also rebuilds live on locale change instead of waiting for the next launch. Includes the pending interactions/quick-action/dialog locale entries and locale.rs additions from the working tree.
28 lines
724 B
Python
28 lines
724 B
Python
#!/usr/bin/env python3
|
|
"""Retired locale converter.
|
|
|
|
The TypeScript locale source under ``apps/web`` was removed with the retired
|
|
TypeScript application. Rust files in ``crates/op-i18n/src/i18n`` are now the
|
|
canonical, hand-maintained translation catalog.
|
|
|
|
This command intentionally fails instead of silently skipping missing inputs
|
|
or overwriting the canonical Rust tables. Catalog integrity is checked by the
|
|
``op-i18n`` test suite.
|
|
"""
|
|
|
|
import sys
|
|
|
|
|
|
def main() -> int:
|
|
print(
|
|
"tools/convert-locales.py is retired: "
|
|
"edit crates/op-i18n/src/i18n/*.rs directly and run "
|
|
"`cargo test -p op-i18n`.",
|
|
file=sys.stderr,
|
|
)
|
|
return 2
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|