abbreviations-in-code icon indicating copy to clipboard operation
abbreviations-in-code copied to clipboard

Add "tr" for "translate" / "translation"

Open philipeachille opened this issue 8 months ago • 2 comments

➕ New abbr {abbr}

translate {tr} translation {tr}

Rules

  • Not an acronym (e.g. RAM, CPU, SQL) or conventions (e.g. i, j, k)
  • Masculine singular noun form if possible
  • Max 1 🟢 (Recommended) abbr

Compile the degrees of reccomendation (not all required)

{word}

  • 🟢 {tr}

Briefly describe or provide examples about this abbr

using it as a translation function such as "tr('button.send')"

philipeachille avatar May 11 '25 20:05 philipeachille

i know that common usage is t('button.send'), as a convention. but i find t( annoying when searching for it because it catches other things like useEffect( or new CustomEvent(

philipeachille avatar May 11 '25 20:05 philipeachille

I think it's too generic https://en.wiktionary.org/wiki/tr.

https://en.wiktionary.org/wiki/transl.#:~:text=Noun-,transl.,Abbreviation%20of%20translation.

T1xx1 avatar May 18 '25 10:05 T1xx1