Skip to content

Commit

Permalink
修复拼音库使用错误和西班牙语格式错
Browse files Browse the repository at this point in the history
gongfuxiang committed Apr 26, 2024
1 parent 459469a commit 96fbb92
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/common.php
Original file line number Diff line number Diff line change
@@ -326,7 +326,7 @@ function ArrayFieldContrastHandle($arr1, $arr2)
*/
function ChinesePinyin($string, $is_string = false, $join = '')
{
$value = (new \Overtrue\Pinyin\Pinyin())->convert($string);
$value = (new \Overtrue\Pinyin\Pinyin())->sentence($string, 'none');
return ($is_string && is_array($value)) ? implode($join, $value) : $value;
}

8 changes: 4 additions & 4 deletions app/lang/spa.php
Original file line number Diff line number Diff line change
@@ -384,10 +384,10 @@
'open_title' => 'Abrir',
'number_title' => 'Cantidad',
'inventory_title' => 'Inventario',
'weight_title' => "Peso",
'volume_title' => "Volumen",
'coding_title' => 'codificación' ",
'barcode_title' => 'código de barras' ",
'weight_title' => 'Peso',
'volume_title' => 'Volumen',
'coding_title' => 'codificación',
'barcode_title' => 'código de barras',
'enter_inventory_title' => 'Almacenamiento',
'sales_title' => 'Ventas',
'access_title' => 'Visitas',

0 comments on commit 96fbb92

Please sign in to comment.