Finish i18n of fr

This commit is contained in:
Gucheng Wang
2023-03-18 18:54:05 +08:00
parent 263f804ab8
commit 31e4813df9
13 changed files with 634 additions and 618 deletions

View File

@ -672,6 +672,22 @@ export function getShortName(s) {
return s.split("/").slice(-1)[0];
}
export function getNameAtLeast(s) {
s = getShortName(s);
if (s.length >= 6) {
return s;
}
return (
<React.Fragment>
&nbsp;
{s}
&nbsp;
&nbsp;
</React.Fragment>
);
}
export function getShortText(s, maxLength = 35) {
if (s.length > maxLength) {
return `${s.slice(0, maxLength)}...`;
@ -851,7 +867,7 @@ export function getProviderTypeOptions(category) {
{id: "OneDrive", name: "OneDrive"},
{id: "Oura", name: "Oura"},
{id: "Patreon", name: "Patreon"},
{id: "Paypal", name: "Paypal"},
{id: "PayPal", name: "PayPal"},
{id: "SalesForce", name: "SalesForce"},
{id: "Shopify", name: "Shopify"},
{id: "Soundcloud", name: "Soundcloud"},