Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit eebcace

Browse files
Nicolas Boisvertcoderdiaz
Nicolas Boisvert
authored andcommitted
Added french translation
1 parent 3d7443c commit eebcace

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
### Demo
2222

23-
[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)
23+
[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)
2424
[![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://forthebadge.com)
2525

2626
!['Screenshot'](https://raw.githubusercontent.com/coderdiaz/vue-datasource/master/screenshot.png)
@@ -91,11 +91,12 @@ new Vue({
9191
|-------------|-------|
9292
| Spanish | es |
9393
| English | en |
94+
| French | fr |
9495

9596
### Columns
9697
Each column object needs a `name` and `key` attributes.
9798
```javascript
98-
{
99+
{
99100
...,
100101
columns: [
101102
{
@@ -124,7 +125,7 @@ For Laravel users, you can access relationships through the `key` attribute. Let
124125

125126
To get the user's role we would need to define in our columns array:
126127
```javascript
127-
{
128+
{
128129
...,
129130
columns: [
130131
{
@@ -139,7 +140,7 @@ To get the user's role we would need to define in our columns array:
139140
### Render column
140141
This callback will modify the data for various operations. Such as applying a specific format or an arithmetic operation to the column value and return it.
141142
```javascript
142-
{
143+
{
143144
...,
144145
columns: [
145146
{
@@ -166,7 +167,7 @@ This callback will modify the data for various operations. Such as applying a sp
166167
to: 15 // End of visible rows
167168
}
168169
}
169-
```
170+
```
170171

171172
### Action Event Sctructure
172173
```javascript
@@ -189,7 +190,7 @@ This callback will modify the data for various operations. Such as applying a sp
189190
- Using Laravel 5.3 and pagination: [laravel-datasource-example](https://github.com/coderdiaz/laravel-datasource-example).
190191

191192

192-
### Contributions
193+
### Contributions
193194
All contributions are welcome send your PR and Issues.
194195

195196
### License

src/utils/DatasourceLanguage.js

+19-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@ export default {
3333
'btn_first': 'Primero',
3434
'btn_last': 'Último'
3535
}
36-
}
36+
},
37+
// French translation
38+
'fr': {
39+
'table': {
40+
'label_limits': 'Afficher',
41+
'label_search': 'Recherche',
42+
'placeholder_search': 'Recherche par mot-clé..',
43+
'records_not_found': 'Aucun enregistrements trouvés'
44+
},
45+
'pagination': {
46+
'label_show': 'Affichage de',
47+
'label_to': 'à',
48+
'label_of': 'de',
49+
'label_entries': 'entrées',
50+
'btn_first': 'Première',
51+
'btn_last': 'Dernière'
52+
}
53+
},
3754
}
38-
}
55+
}

0 commit comments

Comments
 (0)