Skip to content

Commit 0eb20fc

Browse files
Jo3lYousef Sultan
authored and
Yousef Sultan
committed
Spanish and Catalan locale files added (#28)
* Spanish and Catalan locales added * "Search data" string localized
1 parent 9c35a77 commit 0eb20fc

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

src/DataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div v-if="this.searching">
3333
<div id="search-input-container">
3434
<label>
35-
<input type="search" id="search-input" class="form-control" placeholder="Search data"
35+
<input type="search" id="search-input" class="form-control" :placeholder="lang['search_data']"
3636
:value="searchInput"
3737
@input="(e) => {this.searchInput = e.target.value}">
3838
</label>

src/locales/ar.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"rows_per_page": "عدد النتائج كل صفحة",
33
"out_of_pages": "من أصل",
44
"all": "الكل",
5-
"__is_rtl": true
6-
}
5+
"__is_rtl": true,
6+
"search_data": "Search data"
7+
}

src/locales/cat.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rows_per_page": "Files per pàgina",
3+
"out_of_pages": "de",
4+
"all": "Totes",
5+
"search_data": "Buscar dades"
6+
}

src/locales/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rows_per_page": "Rows per page",
33
"out_of_pages": "of",
4-
"all": "All"
5-
}
4+
"all": "All",
5+
"search_data": "Search data"
6+
}

src/locales/es.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rows_per_page": "Filas por página",
3+
"out_of_pages": "de",
4+
"all": "Todas",
5+
"search_data": "Buscar datos"
6+
}

src/locales/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
22
en: require('./en.json'),
33
ar: require('./ar.json'),
4-
};
4+
es: require('./es.json'),
5+
cat: require('./cat.json')
6+
};

0 commit comments

Comments
 (0)