Patchouli

Patchouli

168M Downloads

Feature Request: Default macro for translating

Snownee opened this issue ยท 1 comments

commented

I am trying to add a custom macro in my book.json:

"macros": {
  "$(severe)": "$(#f00) $(t:Very Important!!) [Warning!!] $()"
}

But here comes a problem: It does not support i18n. Which means I have to add a macro for every language or edit page json in every language.

Possible implements:

"macros": {
  "$(severe)": "$(#f00) $(t:$(translate:key.very.important)) [$(translate:key.warning)] $()"
}

(If nested macro is not supported)

"macros": {
  "$(severe)": "$(#f00) $(t:key.very.important) [$(translate:key.warning)] $()"
}
commented

This issue is stale because it has been open for a while with no activity. Please bump if this is still an issue, or this ticket will be closed soon.