Skip to content

Commit

Permalink
feat: Use fawazahmed0/currency-api for currency exchange (#1043)
Browse files Browse the repository at this point in the history
* feat: Use fawazahmed0/currency-api

* docs: replace provider url
  • Loading branch information
wywywywy authored Oct 4, 2023
1 parent 616dc97 commit 9d38648
Show file tree
Hide file tree
Showing 19 changed files with 392 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ This plugin enables you to quickly find control panel items.

### Currency Converter

This plugin enables you to quickly convert currencies. The latest conversion rates are provided by https://exchangerate.host/.
This plugin enables you to quickly convert currencies. The latest conversion rates are provided by https://github.com/fawazahmed0/currency-api/.

![currency-converter](assets/feature-currency-converter.png)

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/czech-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export const englishTranslationSet: TranslationSet = {

currencyConverter: "Převodník měn",
currencyConverterDescription:
"Tento plugin umožňuje rychle převádět měny. Nejnovější kurzy jsou uvedeny na adrese https://exchangerate.host/.",
"Tento plugin umožňuje rychle převádět měny. Nejnovější kurzy jsou uvedeny na adrese https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Přesnost",
currencyConverterCopyToClipboard: "Stisknutím klávesy Enter zkopírujete do schránky",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/english-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const englishTranslationSet: TranslationSet = {

currencyConverter: "Currency Converter",
currencyConverterDescription:
"This plugin enables you to quickly convert currencies. The latest conversion rates are provided by https://exchangerate.host/.",
"This plugin enables you to quickly convert currencies. The latest conversion rates are provided by https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Precision",
currencyConverterCopyToClipboard: "Press enter to copy to clipboard",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/finnish-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const finnishTranslationSet: TranslationSet = {

currencyConverter: "Valuuttamuunnin",
currencyConverterDescription:
"Tämän lisäosan avulla voit tehdä nopeasti valuuttamuunnoksia. Nykyiset valuuttakurssit tarjoaa https://exchangerate.host/.",
"Tämän lisäosan avulla voit tehdä nopeasti valuuttamuunnoksia. Nykyiset valuuttakurssit tarjoaa https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Tarkkuus",
currencyConverterCopyToClipboard: "Paina Enteriä kopioidaksesi leikepöydälle",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/german-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const germanTranslationSet: TranslationSet = {

currencyConverter: "Währungsumrechnung",
currencyConverterDescription:
"Dieses Plugin erlaubt es dir schnell Währungsumrechnungen zu machen. Aktuelle Wechselkurse werden von https://exchangerate.host/ bereit gestellt.",
"Dieses Plugin erlaubt es dir schnell Währungsumrechnungen zu machen. Aktuelle Wechselkurse werden von https://github.com/fawazahmed0/currency-api/ bereit gestellt.",
currencyConverterPrecision: "Präzision",
currencyConverterCopyToClipboard: "Drücke Enter um in die Zwischenablage zu kopieren",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/hindi-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const hindiTranslationSet: TranslationSet = {

currencyConverter: "मुद्रा परिवर्तक",
currencyConverterDescription:
"यह प्लगइन आपको मुद्राओं को जल्दी से बदलने में सक्षम बनाता है। नवीनतम रूपांतरण दरें https://exchangerate.host/ द्वारा प्रदान की जाती हैं।",
"यह प्लगइन आपको मुद्राओं को जल्दी से बदलने में सक्षम बनाता है। नवीनतम रूपांतरण दरें https://github.com/fawazahmed0/currency-api/ द्वारा प्रदान की जाती हैं।",
currencyConverterPrecision: "सटीक",
currencyConverterCopyToClipboard: "क्लिपबोर्ड पर कॉपी करने के लिए एंटर दबाएं",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/italian-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const italianTranslationSet: TranslationSet = {
openNewMail: "Crea nuova email",
currencyConverter: "Convertitore di valuta",
currencyConverterDescription:
"Questo plugin ti consente di convertire rapidamente le valute. Gli ultimi tassi di conversione sono forniti da https://exchangerate.host/.",
"Questo plugin ti consente di convertire rapidamente le valute. Gli ultimi tassi di conversione sono forniti da https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Precisione",
currencyConverterCopyToClipboard: "Premi Invio per copiare negli appunti",
workflows: "Flussi di lavoro",
Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/japanese-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export const japaneseTranslationSet: TranslationSet = {

currencyConverter: "通貨コンバーター",
currencyConverterDescription:
"このプラグインは素早く通貨を変換することができます。最新の交換レートは https://exchangerate.host/ より提供されます。",
"このプラグインは素早く通貨を変換することができます。最新の交換レートは https://github.com/fawazahmed0/currency-api/ より提供されます。",
currencyConverterPrecision: "精度",
currencyConverterCopyToClipboard: "エンターを押下してクリップボードにコピー",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/korean-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const koreanTranslationSet: TranslationSet = {

currencyConverter: "통화 변환기",
currencyConverterDescription:
"이 플러그인을 사용하면 통화를 빠르게 변환할 수 있습니다. 최신 환율은 https://exchangerate.host/ 에서 제공합니다.",
"이 플러그인을 사용하면 통화를 빠르게 변환할 수 있습니다. 최신 환율은 https://github.com/fawazahmed0/currency-api/ 에서 제공합니다.",
currencyConverterPrecision: "정밀도",
currencyConverterCopyToClipboard: "Enter를 눌러 계산 결과를 클립보드에 복사",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/portuguese-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const portugueseTranslationSet: TranslationSet = {

currencyConverter: "Converter moeda",
currencyConverterDescription:
"Este plugin te habilita a converter moedas rapidamente. As taxas de conversão são providas por https://exchangerate.host/.",
"Este plugin te habilita a converter moedas rapidamente. As taxas de conversão são providas por https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Precisão",
currencyConverterCopyToClipboard: "Pressione Enter para copiar para a área de transferência",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/russian-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const russianTranslationSet: TranslationSet = {

currencyConverter: "Конвертация валют",
currencyConverterDescription:
"Этот плагин позволяет быстро конвертировать валюты. Актуальные курсы валют предоставлены https://exchangerate.host/.",
"Этот плагин позволяет быстро конвертировать валюты. Актуальные курсы валют предоставлены https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Точность",
currencyConverterCopyToClipboard: "Нажмите enter, чтобы скопировать",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const simplifiedChineseTranslationSet: TranslationSet = {
openNewMail: "打开新邮件",

currencyConverter: "货币换算",
currencyConverterDescription: "根据 https://exchangerate.host/ 数据来转换货币",
currencyConverterDescription: "根据 https://github.com/fawazahmed0/currency-api/ 数据来转换货币",
currencyConverterPrecision: "精度",
currencyConverterCopyToClipboard: "按 Enter 复制到剪贴板",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/spanish-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const spanishTranslationSet: TranslationSet = {

currencyConverter: "Conversor de divisa",
currencyConverterDescription:
"Este plugin te permite convertir divisa de forma rápida. Los últimos ratios de conversión están provistos por https://exchangerate.host/.",
"Este plugin te permite convertir divisa de forma rápida. Los últimos ratios de conversión están provistos por https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Precisión",
currencyConverterCopyToClipboard: "Presiona enter para copiar al portapapeles",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const traditionalChineseTranslationSet: TranslationSet = {
openNewMail: "打開新電郵",

currencyConverter: "貨幣換算",
currencyConverterDescription: "根據 https://exchangerate.host/ 提供的匯率來轉換貨幣。",
currencyConverterDescription: "根據 https://github.com/fawazahmed0/currency-api/ 提供的匯率來轉換貨幣。",
currencyConverterPrecision: "精確度",
currencyConverterCopyToClipboard: "按 Enter 複製到剪貼簿",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/turkish-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const turkishTranslationSet: TranslationSet = {

currencyConverter: "Döviz Çevirici",
currencyConverterDescription:
"Bu eklenti para birimlerini hızlıca dönüştürmenizi sağlar. En son dönüşüm oranları https://exchangerate.host/ tarafından sağlanmaktadır..",
"Bu eklenti para birimlerini hızlıca dönüştürmenizi sağlar. En son dönüşüm oranları https://github.com/fawazahmed0/currency-api/ tarafından sağlanmaktadır..",
currencyConverterPrecision: "Hassas",
currencyConverterCopyToClipboard: "Panoya kopyalamak için enter tuşuna basın",

Expand Down
2 changes: 1 addition & 1 deletion src/common/translation/ukrainian-translation-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const ukrainianTranslationSet: TranslationSet = {
currencyConverter: "Конвертація валют",

currencyConverterDescription:
"Цей плагін дозволяє швидко конвертувати валюти. Актуальні курси валют надані https://exchangerate.host/.",
"Цей плагін дозволяє швидко конвертувати валюти. Актуальні курси валют надані https://github.com/fawazahmed0/currency-api/.",
currencyConverterPrecision: "Точність",
currencyConverterCopyToClipboard: "Натисніть клавішу enter, щоб скопіювати",

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export interface ConversionApiResult {
success: boolean;
result: number;
interface ConversionApiResultDate {
date: string;
}
interface ConversionApiResultValue {
[key: string]: number;
}
export type ConversionApiResult = ConversionApiResultDate & ConversionApiResultValue;
Loading

0 comments on commit 9d38648

Please sign in to comment.