Reveal punycodes

This commit is contained in:
Lim Chee Aun 2024-11-16 09:57:13 +08:00
parent a73d613dce
commit fac1209153
2 changed files with 4 additions and 3 deletions

View file

@ -2266,9 +2266,10 @@ function AccountHandleInfo({ acct, instance }) {
// acct = username or username@server // acct = username or username@server
let [username, server] = acct.split('@'); let [username, server] = acct.split('@');
if (!server) server = instance; if (!server) server = instance;
const encodedAcct = punycode.toASCII(acct);
return ( return (
<div class="handle-info"> <div class="handle-info">
<span class="handle-handle"> <span class="handle-handle" title={encodedAcct}>
<b class="handle-username">{username}</b> <b class="handle-username">{username}</b>
<span class="handle-at">@</span> <span class="handle-at">@</span>
<b class="handle-server">{server}</b> <b class="handle-server">{server}</b>

4
src/locales/en.po generated
View file

@ -507,11 +507,11 @@ msgstr ""
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2278 #: src/components/account-info.jsx:2279
msgid "username" msgid "username"
msgstr "" msgstr ""
#: src/components/account-info.jsx:2282 #: src/components/account-info.jsx:2283
msgid "server domain name" msgid "server domain name"
msgstr "" msgstr ""