From 63b72812d248753db71dff157eda8989ce63de7b Mon Sep 17 00:00:00 2001 From: Nicolas Boisvert Date: Tue, 28 Feb 2017 20:01:14 -0500 Subject: [PATCH] Added french translation --- README.md | 13 +++++++------ src/utils/DatasourceLanguage.js | 21 +++++++++++++++++++-- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f924531..c80d8bd 100644 --- a/README.md +++ b/README.md @@ -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) @@ -91,11 +91,12 @@ new Vue({ |-------------|-------| | Spanish | es | | English | en | +| French | fr | ### Columns Each column object needs a `name` and `key` attributes. ```javascript -{ +{ ..., columns: [ { @@ -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: [ { @@ -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: [ { @@ -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 @@ -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 diff --git a/src/utils/DatasourceLanguage.js b/src/utils/DatasourceLanguage.js index 01ffb2b..697181a 100644 --- a/src/utils/DatasourceLanguage.js +++ b/src/utils/DatasourceLanguage.js @@ -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' + } + }, } -} \ No newline at end of file +}