chore: extract message

This commit is contained in:
Kieran 2023-02-28 15:52:05 +00:00
parent 0a8741ee71
commit 5caf5541ec
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,9 @@
import { useCallback, useState } from "react"; import { useCallback, useState } from "react";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { TwitterTweetEmbed } from "react-twitter-embed"; import { TwitterTweetEmbed } from "react-twitter-embed";
import { FormattedMessage } from "react-intl";
import { HexKey } from "@snort/nostr";
import { import {
FileExtensionRegex, FileExtensionRegex,
YoutubeUrlRegex, YoutubeUrlRegex,
@ -19,9 +21,8 @@ import MixCloudEmbed from "Element/MixCloudEmbed";
import SpotifyEmbed from "Element/SpotifyEmbed"; import SpotifyEmbed from "Element/SpotifyEmbed";
import TidalEmbed from "Element/TidalEmbed"; import TidalEmbed from "Element/TidalEmbed";
import { ProxyImg } from "Element/ProxyImg"; import { ProxyImg } from "Element/ProxyImg";
import { HexKey } from "@snort/nostr"; import TwitchEmbed from "Element/TwitchEmbed";
import TwitchEmbed from "./TwitchEmbed"; import AppleMusicEmbed from "Element/AppleMusicEmbed";
import AppleMusicEmbed from "./AppleMusicEmbed";
export default function HyperText({ link, creator }: { link: string; creator: HexKey }) { export default function HyperText({ link, creator }: { link: string; creator: HexKey }) {
const pref = useSelector((s: RootState) => s.login.preferences); const pref = useSelector((s: RootState) => s.login.preferences);
@ -44,7 +45,7 @@ export default function HyperText({ link, creator }: { link: string; creator: He
setReveal(true); setReveal(true);
}} }}
className="note-invoice"> className="note-invoice">
Click to load content from {hostname} <FormattedMessage defaultMessage="Click to load content from {link}" values={{ link: hostname }} />
</div> </div>
); );
} else { } else {

View File

@ -631,6 +631,9 @@
"lnaT9F": { "lnaT9F": {
"defaultMessage": "Following {n}" "defaultMessage": "Following {n}"
}, },
"lsNFM1": {
"defaultMessage": "Click to load content from {link}"
},
"lvlPhZ": { "lvlPhZ": {
"defaultMessage": "Pay Invoice" "defaultMessage": "Pay Invoice"
}, },

View File

@ -205,6 +205,7 @@
"lgg1KN": "account page", "lgg1KN": "account page",
"ll3xBp": "Image proxy service", "ll3xBp": "Image proxy service",
"lnaT9F": "Following {n}", "lnaT9F": "Following {n}",
"lsNFM1": "Click to load content from {link}",
"lvlPhZ": "Pay Invoice", "lvlPhZ": "Pay Invoice",
"mH91FY": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below", "mH91FY": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below",
"mKAr6h": "Follow all", "mKAr6h": "Follow all",