Skip to content

Commit

Permalink
Update the lang as missing lang tags view related langs.
Browse files Browse the repository at this point in the history
  • Loading branch information
shivendra-webkul committed Oct 10, 2024
1 parent 4ada38a commit 4149b0f
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function attach($id)
Event::dispatch('warehouse.tag.create.after', $warehouse);

return response()->json([
'message' => trans('admin::app.warehouse.view.tags.create-success'),
'message' => trans('admin::app.settings.warehouses.view.tags.create-success'),
]);
}

Expand All @@ -55,7 +55,7 @@ public function detach($warehouseId)
Event::dispatch('warehouse.tag.delete.after', $warehouse);

return response()->json([
'message' => trans('admin::app.leads.view.tags.destroy-success'),
'message' => trans('admin::app.settings.warehouses.view.tags.destroy-success'),
]);
}
}
10 changes: 10 additions & 0 deletions packages/Webkul/Admin/src/Resources/lang/ar/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@
],
],
],

'tags' => [
'create-success' => 'تم إنشاء العلامة بنجاح.',
'destroy-success' => 'تم حذف العلامة بنجاح.',
],
],

'create' => [
Expand Down Expand Up @@ -1371,6 +1376,11 @@
'contact-information' => [
'title' => 'معلومات الاتصال',
],

'tags' => [
'create-success' => 'تم إنشاء العلامة بنجاح.',
'destroy-success' => 'تم حذف العلامة بنجاح.',
],
],
],

Expand Down
10 changes: 10 additions & 0 deletions packages/Webkul/Admin/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@
],
],
],

'tags' => [
'create-success' => 'Tag created successfully.',
'destroy-success' => 'Tag deleted successfully.',
],
],

'create' => [
Expand Down Expand Up @@ -1371,6 +1376,11 @@
'contact-information' => [
'title' => 'Contact Information',
],

'tags' => [
'create-success' => 'Tag created successfully.',
'destroy-success' => 'Tag deleted successfully.',
],
],
],

Expand Down
10 changes: 10 additions & 0 deletions packages/Webkul/Admin/src/Resources/lang/es/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@
],
],
],

'tags' => [
'create-success' => 'Etiqueta creada con éxito.',
'destroy-success' => 'Etiqueta eliminada con éxito.',
],
],

'create' => [
Expand Down Expand Up @@ -1371,6 +1376,11 @@
'contact-information' => [
'title' => 'Información de Contacto',
],

'tags' => [
'create-success' => 'Etiqueta creada con éxito.',
'destroy-success' => 'Etiqueta eliminada con éxito.',
],
],
],

Expand Down
10 changes: 10 additions & 0 deletions packages/Webkul/Admin/src/Resources/lang/fa/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@
],
],
],

'tags' => [
'create-success' => 'برچسب با موفقیت ایجاد شد.',
'destroy-success' => 'برچسب با موفقیت حذف شد.',
],
],

'create' => [
Expand Down Expand Up @@ -1371,6 +1376,11 @@
'contact-information' => [
'title' => 'اطلاعات تماس',
],

'tags' => [
'create-success' => 'برچسب با موفقیت ایجاد شد.',
'destroy-success' => 'برچسب با موفقیت حذف شد.',
],
],
],

Expand Down
10 changes: 10 additions & 0 deletions packages/Webkul/Admin/src/Resources/lang/tr/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@
],
],
],

'tags' => [
'create-success' => 'Etiket başarıyla oluşturuldu.',
'destroy-success' => 'Etiket başarıyla silindi.',
],
],

'create' => [
Expand Down Expand Up @@ -1371,6 +1376,11 @@
'contact-information' => [
'title' => 'İletişim Bilgileri',
],

'tags' => [
'create-success' => 'Etiket başarıyla oluşturuldu.',
'destroy-success' => 'Etiket başarıyla silindi.',
],
],
],

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class="flex items-center gap-1 rounded-md bg-rose-100 px-3 py-1.5 text-xs font-m
'color': backgroundColors.find(color => color.background === tag.color)?.text
}"
v-for="(tag, index) in tags"
v-text="tag.name"
v-html="tag.name"
>
</span>

Expand Down
8 changes: 8 additions & 0 deletions packages/Webkul/Tag/src/Models/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ public function user()
{
return $this->belongsTo(UserProxy::modelClass());
}

/**
* Accessor to strip tags from the name attribute.
*/
public function getNameAttribute($value): string
{
return strip_tags($value);
}
}

0 comments on commit 4149b0f

Please sign in to comment.