aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 10:47:18 -0700
committerAdam Soltys <[email protected]>2026-10-09 10:47:18 -0700
commit7e064d5c8b33f788bda2755a32e71e2fb01a00ba (patch)
tree66a3b32f07a98b5646ffc9b662362bc912eb7553 /src/i18n.js
parent41d7b9d4e5d0e10cdac708d9c9cd4838e47240ec (diff)
downloadcoinosv3-7e064d5c8b33f788bda2755a32e71e2fb01a00ba.tar.gz
coinosv3-7e064d5c8b33f788bda2755a32e71e2fb01a00ba.zip
Translation: a hashtag in a script the reader can't read gets its translation in brackets after it — "#総合部絵チャ (…)" — the tag itself kept as the link it is. A post that is only such hashtags now counts as foreign (it was judged by its prose alone, of which it has none, so nothing ever offered to translate it), and ⋯ → Translate on a post with no words says so instead of "already in your language". The registrar's language detection reads the glossed tags too; lang-guess's scriptOf takes a minimum (a two-character tag has a script too).
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'src/i18n.js')
-rw-r--r--src/i18n.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i18n.js b/src/i18n.js
index a1b0a79..894012e 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -442,6 +442,7 @@ const STR = {
translatedFrom: 'Translated from {lang}',
translateShowOriginal: 'Show original',
translateSame: 'This post is already in your language',
+ translateNothing: 'There are no words in this post to translate',
translateFailed: 'Couldn’t translate this post',
translateTitle: 'Translation',
translateAutoToggle: 'Translate posts into {lang} automatically',