From 79c4d4989699569915828a42ee749270479856f0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 10 Aug 2023 09:39:59 +1000 Subject: [PATCH] add translations for currencies --- app/Utils/TranslationHelper.php | 2 +- database/seeders/CurrenciesSeeder.php | 1 + lang/en/texts.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Utils/TranslationHelper.php b/app/Utils/TranslationHelper.php index e401f806bb91..15850f62e445 100644 --- a/app/Utils/TranslationHelper.php +++ b/app/Utils/TranslationHelper.php @@ -12,7 +12,7 @@ namespace App\Utils; use App\Models\PaymentTerm; -use Cache; +use \Illuminate\Support\Facades\Cache; use Illuminate\Support\Str; class TranslationHelper diff --git a/database/seeders/CurrenciesSeeder.php b/database/seeders/CurrenciesSeeder.php index 65778f979b29..3005940fa1f9 100644 --- a/database/seeders/CurrenciesSeeder.php +++ b/database/seeders/CurrenciesSeeder.php @@ -140,6 +140,7 @@ class CurrenciesSeeder extends Seeder ['id' => 115, 'name' => 'Libyan Dinar', 'code' => 'LYD', 'symbol' => 'LD', 'precision' => '3', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 116, 'name' => 'Silver Troy Ounce', 'code' => 'XAG', 'symbol' => 'XAG', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 117, 'name' => 'Gold Troy Ounce', 'code' => 'XAU', 'symbol' => 'XAU', 'precision' => '3', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['id' => 118, 'name' => 'Nicaraguan Córdoba', 'code' => 'NIO', 'symbol' => 'C$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ]; foreach ($currencies as $currency) { diff --git a/lang/en/texts.php b/lang/en/texts.php index 01cd88c8b0df..de744e933230 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5146,6 +5146,7 @@ $LANG = array( 'triangular_tax_info' => 'Intra-community triangular transaction', 'intracommunity_tax_info' => 'Tax-free intra-community delivery', 'reverse_tax_info' => 'Please note that this supply is subject to reverse charge', + 'currency_nicaraguan_cordoba' => 'Nicaraguan Córdoba', ); return $LANG;