ngReactGrid icon indicating copy to clipboard operation
ngReactGrid copied to clipboard

Add translation options.

Open kashcode opened this issue 11 years ago • 3 comments

It will be very nice if there will be some translation options.

kashcode avatar Nov 28 '14 08:11 kashcode

@turbosasa yeah good point, it would be nice to be able to override the prev/next, sort controls, etc.

josebalius avatar Nov 29 '14 00:11 josebalius

@josebalius for translation I locally create provider where I define all words and in config block I override defaults

.config(function (ngReactGridI18nProvider) {
    angular.extend(ngReactGridI18nProvider.defaults, {
        page: 'Lapa',
        of: 'no',
        showing: 'Attēlojam ',
        records: 'ierakstiem',
        show: 'Rādīt',
        entries: 'ierakstus',
        prev: '<',
        first: '|<',
        last: '>|',
        next: '>',
        no_records_found: 'Nav neviena ieraksta',
        search: 'Meklēt...',
        loading: 'Noteik datu ielāde...'
    });        
});

I try prepare PR for this.

kashcode avatar Jan 09 '15 08:01 kashcode

This will be supported in https://github.com/josebalius/react-grid however we will have to think of a way to make the Angular adapter pass in these properties.

josebalius avatar Apr 23 '15 00:04 josebalius