mono/packages/i18n/docs/Integration.md
2025-01-25 14:23:40 +01:00

1005 B

Integration

Integration: Alt-Tap Salamand - Custom Menus

To use OSR-i18n in custom menus, as follows

  1. install osr-cad via npm i -g @polymech/osr-cad
  2. Register a new custom menu (press F9 on any file)

command : osr-i18n

Arguments : translate --alt=true --targetLang="DE" --debug --src="$(FullName)" --dst="&{SRC_DIR}/&{SRC_NAME}.&{DST_LANG}.+(md)"


translate                                   # osr-i18n command
    --alt=true                              # use alternate tokenizer, '&' instead of '$' to prevent collisions with Alt-Tab's own variable designator
    --debug=true                            # be verbose
    --src="$(FullName)"                     # use Alt-Tab's variable for the current selected file
    --dst="&{SRC_DIR}/&{SRC_NAME}.&{DST_LANG}.+(md)"  # the output destination path