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

Added french translation #7

Merged
merged 1 commit into from
Mar 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

### Demo

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

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

### Columns
Each column object needs a `name` and `key` attributes.
```javascript
{
{
...,
columns: [
{
Expand Down Expand Up @@ -124,7 +125,7 @@ For Laravel users, you can access relationships through the `key` attribute. Let

To get the user's role we would need to define in our columns array:
```javascript
{
{
...,
columns: [
{
Expand All @@ -139,7 +140,7 @@ To get the user's role we would need to define in our columns array:
### Render column
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.
```javascript
{
{
...,
columns: [
{
Expand All @@ -166,7 +167,7 @@ This callback will modify the data for various operations. Such as applying a sp
to: 15 // End of visible rows
}
}
```
```

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


### Contributions
### Contributions
All contributions are welcome send your PR and Issues.

### License
Expand Down
21 changes: 19 additions & 2 deletions src/utils/DatasourceLanguage.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,23 @@ export default {
'btn_first': 'Primero',
'btn_last': 'Último'
}
}
},
// French translation
'fr': {
'table': {
'label_limits': 'Afficher',
'label_search': 'Recherche',
'placeholder_search': 'Recherche par mot-clé..',
'records_not_found': 'Aucun enregistrements trouvés'
},
'pagination': {
'label_show': 'Affichage de',
'label_to': 'à',
'label_of': 'de',
'label_entries': 'entrées',
'btn_first': 'Première',
'btn_last': 'Dernière'
}
},
}
}
}