/**
 * Created by Fredrik on 9/25/14.
 */
(function () {
  angular.module('ui.grid').config(['$provide', function($provide) {
    $provide.decorator('i18nService', ['$delegate', function($delegate) {
      $delegate.add('sv', {
        aggregate: {
          label: 'artiklar'
        },
        groupPanel: {
          description: 'Dra en kolumnrubrik hit och släpp den för att gruppera efter den kolumnen.'
        },
        search: {
          placeholder: 'Sök...',
          showingItems: 'Visar artiklar:',
          selectedItems: 'Valda artiklar:',
          totalItems: 'Antal artiklar:',
          size: 'Sidstorlek:',
          first: 'Första sidan',
          next: 'Nästa sida',
          previous: 'Föregående sida',
          last: 'Sista sidan'
        },
        menu: {
          text: 'Välj kolumner:'
        },
        sort: {
          ascending: 'Sortera stigande',
          descending: 'Sortera fallande',
          remove: 'Inaktivera sortering'
        },
        column: {
          hide: 'Göm kolumn'
        },
        aggregation: {
          count: 'total rows: ',
          sum: 'total: ',
          avg: 'avg: ',
          min: 'min: ',
          max: 'max: '
        },
        pinning: {
          pinLeft: 'Fäst vänster',
          pinRight: 'Fäst höger',
          unpin: 'Lösgör'
        },
        gridMenu: {
          columns: 'Columns:',
          importerTitle: 'Import file',
          exporterAllAsCsv: 'Export all data as csv',
          exporterVisibleAsCsv: 'Export visible data as csv',
          exporterSelectedAsCsv: 'Export selected data as csv',
          exporterAllAsPdf: 'Export all data as pdf',
          exporterVisibleAsPdf: 'Export visible data as pdf',
          exporterSelectedAsPdf: 'Export selected data as pdf'
        },
        importer: {
          noHeaders: 'Column names were unable to be derived, does the file have a header?',
          noObjects: 'Objects were not able to be derived, was there data in the file other than headers?',
          invalidCsv: 'File was unable to be processed, is it valid CSV?',
          invalidJson: 'File was unable to be processed, is it valid Json?',
          jsonNotArray: 'Imported json file must contain an array, aborting.'
        }
      });
      return $delegate;
    }]);
  }]);
})();
@@ -1081,18 +1081,19 @@
 t: '
-to
+An
 tal r
-ows
+ader
 : ',
@@ -1109,21 +1109,21 @@
   sum: '
-total
+Summa
 : ',%0A   
@@ -1135,19 +1135,26 @@
   avg: '
-avg
+Genomsnitt
 : ',%0A   
@@ -1166,17 +1166,17 @@
   min: '
-m
+M
 in: ',%0A 
@@ -1190,17 +1190,17 @@
   max: '
-m
+M
 ax: '%0A  
@@ -1377,15 +1377,16 @@
 s: '
-C
+K
 olumn
-s
+er
 :',%0A
@@ -1417,21 +1417,23 @@
  'Import
+era
  fil
-e
 ',%0A     
@@ -1454,32 +1454,35 @@
 llAsCsv: 'Export
+era
  all data as csv
@@ -1471,30 +1471,31 @@
 ra all data 
-as csv
+som CSV
 ',%0A         
@@ -1528,28 +1528,31 @@
 port
- visible data as csv
+era synlig data som CSV
 ',%0A 
@@ -1594,29 +1594,33 @@
 port
- selected data as csv
+era markerad data som CSV
 ',%0A 
@@ -1653,16 +1653,19 @@
  'Export
+era
  all dat
@@ -1662,30 +1662,31 @@
 ra all data 
-as pdf
+som PDF
 ',%0A         
@@ -1719,28 +1719,31 @@
 port
- visible data as pdf
+era synlig data som PDF
 ',%0A 
@@ -1785,29 +1785,33 @@
 port
- selected data as pdf
+era markerad data som PDF
 '%0A  
@@ -1865,335 +1865,302 @@
 s: '
-C
+K
 olumn
- 
 nam
-es were unable to be derived, does the file have a header?',%0A          noObjects: 'Objects were not able to be derived, was there data in the file other than headers?',%0A          invalidCsv: 'File was unable to be processed, is it valid CSV?',%0A          invalidJson: 'File was unable to be processed, is it valid Json
+n kunde inte h%C3%A4rledas. Har filen ett sidhuvud?',%0A          noObjects: 'Objekt kunde inte h%C3%A4rledas. Har filen data undantaget sidhuvud?',%0A          invalidCsv: 'Filen kunde inte behandlas, %C3%A4r den en giltig CSV?',%0A          invalidJson: 'Filen kunde inte behandlas, %C3%A4r den en giltig JSON
 ?',%0A
@@ -2195,51 +2195,62 @@
 orte
-d json 
+rad JSON-
 fil
-e
  m
-ust contain an array, aborting
+%C3%A5ste inneh%C3%A5lla ett f%C3%A4lt. Import avbruten
 .'%0A 

Translated the new fields to Swedish