mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0eaf3f0f8a
commit
33175cad7c
17 changed files with 38 additions and 0 deletions
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "باتاكا ماكاوي",
|
||||
"numberFormatSGD": "دولار سنغافوري",
|
||||
"numberFormatNZD": "دولار نيوزيلندي",
|
||||
"numberFormatILS": "الشيكل الإسرائيلي الجديد",
|
||||
"email": "بريد إلكتروني",
|
||||
"phone": "رقم هاتف",
|
||||
"inboxTip": "افتح دليل المستخدم للبحث عن <code class='fn__code'>علبة الوارد (inbox)</code> لعرض التعليمات",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Macau-Pataca",
|
||||
"numberFormatSGD": "Singapur-Dollar",
|
||||
"numberFormatNZD": "Neuseeland-Dollar",
|
||||
"numberFormatILS": "Neuer israelischer Schekel",
|
||||
"email": "E-Mail",
|
||||
"phone": "Telefon",
|
||||
"inboxTip": "Öffnen Sie das Benutzerhandbuch, um die <code class='fn__code'>Posteingang</code> zu durchsuchen, um die Anweisungen anzuzeigen",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Macau Pataca",
|
||||
"numberFormatSGD": "Singapore Dollar",
|
||||
"numberFormatNZD": "New Zealand Dollar",
|
||||
"numberFormatILS": "Israeli New Shekel",
|
||||
"email": "Email",
|
||||
"phone": "Phone",
|
||||
"inboxTip": "Open the user guide to search the <code class='fn__code'>inbox</code> to view the instructions",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Pataca de Macao",
|
||||
"numberFormatSGD": "Dólar de Singapur",
|
||||
"numberFormatNZD": "Dólar neozelandés",
|
||||
"numberFormatILS": "Nuevo shekel israelí",
|
||||
"email": "Correo electrónico",
|
||||
"phone": "Teléfono",
|
||||
"inboxTip": "Abra la guía del usuario para buscar en la <code class='fn__code'>bandeja de entrada</code> para ver las instrucciones",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Pataca de Macao",
|
||||
"numberFormatSGD": "Dollar de Singapour",
|
||||
"numberFormatNZD": "Dollar néo-zélandais",
|
||||
"numberFormatILS": "Nouveau shekel israélien",
|
||||
"email": "E-mail",
|
||||
"phone": "Téléphone",
|
||||
"inboxTip": "Ouvrez le guide de l'utilisateur pour rechercher la <code class='fn__code'>boîte de réception</code> pour afficher les instructions",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "פטקה של מקאו",
|
||||
"numberFormatSGD": "דולר סינגפורי",
|
||||
"numberFormatNZD": "דולר ניו זילנדי",
|
||||
"numberFormatILS": "שקל חדש ישראלי",
|
||||
"email": "דואר אלקטרוני",
|
||||
"phone": "טלפון",
|
||||
"inboxTip": "פתח את המדריך למשתמש כדי לחפש ב<code class='fn__code'>אינבוקס</code> כדי לראות את ההנחיות",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Pataca di Macao",
|
||||
"numberFormatSGD": "Dollaro di Singapore",
|
||||
"numberFormatNZD": "Dollaro neozelandese",
|
||||
"numberFormatILS": "Nuovo shekel israeliano",
|
||||
"email": "Email",
|
||||
"phone": "Telefono",
|
||||
"inboxTip": "Apri la guida utente per cercare <code class='fn__code'>inbox</code> e visualizzare le istruzioni",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "マカオパタカ",
|
||||
"numberFormatSGD": "シンガポールドル",
|
||||
"numberFormatNZD": "ニュージーランドドル",
|
||||
"numberFormatILS": "イスラエル新シェケル",
|
||||
"email": "メール",
|
||||
"phone": "電話",
|
||||
"inboxTip": "ユーザーガイドの <code class='fn__code'>受信トレイ</code> を読んで使い方を確認してください",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "마카오 파타카",
|
||||
"numberFormatSGD": "싱가포르 달러",
|
||||
"numberFormatNZD": "뉴질랜드 달러",
|
||||
"numberFormatILS": "이스라엘 신셰켈",
|
||||
"email": "이메일",
|
||||
"phone": "전화",
|
||||
"inboxTip": "사용자 가이드에서 <code class='fn__code'>inbox</code>(수집함)를 검색하여 지침을 확인하세요",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Pataca Makau",
|
||||
"numberFormatSGD": "Dolar singapurski",
|
||||
"numberFormatNZD": "Dolar nowozelandzki",
|
||||
"numberFormatILS": "Nowy izraelski szekel",
|
||||
"email": "Email",
|
||||
"phone": "Telefon",
|
||||
"inboxTip": "Otwórz przewodnik użytkownika, aby wyszukać <code class='fn__code'>inbox</code>, aby zobaczyć instrukcje",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Pataca de Macau",
|
||||
"numberFormatSGD": "Dólar de Singapura",
|
||||
"numberFormatNZD": "Dólar neozelandês",
|
||||
"numberFormatILS": "Новый израильский шекель",
|
||||
"email": "E-mail",
|
||||
"phone": "Telefone",
|
||||
"inboxTip": "Abra o guia do usuário para pesquisar o <code class='fn__code'>inbox</code> e visualizar as instruções",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Патака Макао",
|
||||
"numberFormatSGD": "Сингапурский доллар",
|
||||
"numberFormatNZD": "Новозеландский доллар",
|
||||
"numberFormatILS": "Новый израильский шекель",
|
||||
"email": "Электронная почта",
|
||||
"phone": "Телефон",
|
||||
"inboxTip": "Откройте руководство пользователя, чтобы найти <code class='fn__code'>inbox</code>, чтобы посмотреть инструкции",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "Makao Patakası",
|
||||
"numberFormatSGD": "Singapur Doları",
|
||||
"numberFormatNZD": "Yeni Zelanda Doları",
|
||||
"numberFormatILS": "Yeni İsrail şekeli",
|
||||
"email": "E-posta",
|
||||
"phone": "Telefon",
|
||||
"inboxTip": "Kullanıcı rehberini aç, <code class='fn__code'>inbox</code> yazarak talimatları görüntüle",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "澳門元",
|
||||
"numberFormatSGD": "新加坡元",
|
||||
"numberFormatNZD": "紐西蘭元",
|
||||
"numberFormatILS": "以色列新謝克爾",
|
||||
"email": "郵箱",
|
||||
"phone": "電話",
|
||||
"inboxTip": "打開用戶指南搜索 <code class='fn__code'>收集箱</code> 查看使用說明",
|
||||
|
|
|
|||
|
|
@ -314,6 +314,7 @@
|
|||
"numberFormatMOP": "澳门元",
|
||||
"numberFormatSGD": "新加坡元",
|
||||
"numberFormatNZD": "新西兰元",
|
||||
"numberFormatILS": "以色列新谢克尔",
|
||||
"email": "邮箱",
|
||||
"phone": "电话",
|
||||
"inboxTip": "打开用户指南搜索 <code class='fn__code'>收集箱</code> 查看使用说明",
|
||||
|
|
|
|||
|
|
@ -141,6 +141,15 @@ export const formatNumber = (options: {
|
|||
oldFormat: options.oldFormat,
|
||||
avPanelElement: options.avPanelElement,
|
||||
});
|
||||
addFormatItem({
|
||||
menu,
|
||||
protyle: options.protyle,
|
||||
colId: options.colId,
|
||||
avID: options.avID,
|
||||
format:"TRY",
|
||||
oldFormat: options.oldFormat,
|
||||
avPanelElement: options.avPanelElement,
|
||||
});
|
||||
addFormatItem({
|
||||
menu,
|
||||
protyle: options.protyle,
|
||||
|
|
@ -222,6 +231,16 @@ export const formatNumber = (options: {
|
|||
oldFormat: options.oldFormat,
|
||||
avPanelElement: options.avPanelElement,
|
||||
});
|
||||
addFormatItem({
|
||||
menu,
|
||||
protyle: options.protyle,
|
||||
colId: options.colId,
|
||||
avID: options.avID,
|
||||
format:"ILS",
|
||||
oldFormat: options.oldFormat,
|
||||
avPanelElement: options.avPanelElement,
|
||||
});
|
||||
|
||||
const rect = options.element.getBoundingClientRect();
|
||||
menu.open({
|
||||
x: rect.left,
|
||||
|
|
|
|||
|
|
@ -508,6 +508,7 @@ const (
|
|||
NumberFormatMOP NumberFormat = "MOP" // 澳门币
|
||||
NumberFormatSGD NumberFormat = "SGD" // 新加坡元
|
||||
NumberFormatNZD NumberFormat = "NZD" // 新西兰元
|
||||
NumberFormatILS NumberFormat = "ILS" // 以色列新谢克尔
|
||||
)
|
||||
|
||||
func NewFormattedValueNumber(content float64, format NumberFormat) (ret *ValueNumber) {
|
||||
|
|
@ -601,6 +602,9 @@ func formatNumber(content float64, format NumberFormat) string {
|
|||
case NumberFormatNZD:
|
||||
p := message.NewPrinter(language.English)
|
||||
return p.Sprintf("NZ$%.2f", content)
|
||||
case NumberFormatILS:
|
||||
p := message.NewPrinter(language.Hebrew)
|
||||
return p.Sprintf("ILS₪%.2f", content)
|
||||
default:
|
||||
return strconv.FormatFloat(content, 'f', -1, 64)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue