<|start_filename|>languages/tr.json<|end_filename|>
{
  "measure": "Hesapla",
  "measureDistancesAndAreas": "Uzaklık ve alan hesapla",
  "createNewMeasurement": "Yeni hesaplama",
  "startCreating": "Yeni nokta ekleyerek hesaplamaya başla",
  "finishMeasurement": "Hesaplamayı bitir",
  "lastPoint": "Son nokta",
  "area": "Alan",
  "perimeter": "Çevre uzunluğu",
  "pointLocation": "Nokta yeri",
  "areaMeasurement": "Alan hesaplaması",
  "linearMeasurement": "Doğrusal hesaplama",
  "pathDistance": "Yol uzunluğu",
  "centerOnArea": "Bu alana odaklan",
  "centerOnLine": "Bu doğtuya odaklan",
  "centerOnLocation": "Bu yere odaklan",
  "cancel": "Çıkış",
  "delete": "Sil",
  "acres": "Dönüm",
  "feet": "Feet",
  "kilometers": "Kilometre",
  "hectares": "Hektar",
  "meters": "Metre",
  "miles": "Mil",
  "sqfeet": "Feet kare",
  "sqmeters": "Metre kare",
  "sqmiles": "Mil kare",
  "decPoint": ".",
  "thousandsSep": ","
}


<|start_filename|>languages/da.json<|end_filename|>
{
  "measure": "Mål",
  "measureDistancesAndAreas": "Mål afstande og arealer",
  "createNewMeasurement": "Lav en ny måling",
  "startCreating": "Begynd målingen ved at tilføje punkter på kortet",
  "finishMeasurement": "Afslut måling",
  "lastPoint": "Sidste punkt",
  "area": "Areal",
  "perimeter": "Omkreds",
  "pointLocation": "Punkt",
  "areaMeasurement": "Areal",
  "linearMeasurement": "Linje",
  "pathDistance": "Sti afstand",
  "centerOnArea": "Centrér dette område",
  "centerOnLine": "Centrér denne linje",
  "centerOnLocation": "Centrér dette punkt",
  "cancel": "Annuller",
  "delete": "Slet",
  "acres": "acre",
  "feet": "fod",
  "kilometers": "km",
  "hectares": "ha",
  "meters": "m",
  "miles": "mil",
  "sqfeet": "kvadratfod",
  "sqmeters": "m²",
  "sqmiles": "kvadratmil",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/pl.json<|end_filename|>
{
  "measure": "Pomiar",
  "measureDistancesAndAreas": "Pomiar odległości i powierzchni",
  "createNewMeasurement": "Utwórz nowy pomiar",
  "startCreating": "Rozpocznij tworzenie nowego pomiaru poprzez dodanie punktów na mapie",
  "finishMeasurement": "Zakończ pomiar",
  "lastPoint": "Ostatni punkt",
  "area": "Powierzchnia",
  "perimeter": "Obwód",
  "pointLocation": "Punkt lokalizacji",
  "areaMeasurement": "Pomiar powierzchni",
  "linearMeasurement": "Pomiar liniowy",
  "pathDistance": "Długość ścieżki",
  "centerOnArea": "Środek tego obszaru",
  "centerOnLine": "Środek tej linii",
  "centerOnLocation": "Środek w tej lokalizacji",
  "cancel": "Anuluj",
  "delete": "Skasuj",
  "acres": "akrów",
  "feet": "stóp",
  "kilometers": "kilometrów",
  "hectares": "hektarów",
  "meters": "metrów",
  "miles": "mil",
  "sqfeet": "stóp kwadratowych",
  "sqmeters": "metrów kwadratowych",
  "sqmiles": "mil kwadratowych",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/pt_BR.json<|end_filename|>
{
  "measure": "Medidas",
  "measureDistancesAndAreas": "Mede distâncias e áreas",
  "createNewMeasurement": "Criar nova medida",
  "startCreating": "Comece criando uma medida, adicionando pontos no mapa",
  "finishMeasurement": "Finalizar medida",
  "lastPoint": "Último ponto",
  "area": "Área",
  "perimeter": "Perímetro",
  "pointLocation": "Localização do ponto",
  "areaMeasurement": "Medida de área",
  "linearMeasurement": "Medida linear",
  "pathDistance": "Distância",
  "centerOnArea": "Centralizar nesta área",
  "centerOnLine": "Centralizar nesta linha",
  "centerOnLocation": "Centralizar nesta localização",
  "cancel": "Cancelar",
  "delete": "Excluir",
  "acres": "Acres",
  "feet": "Pés",
  "kilometers": "Quilômetros",
  "hectares": "Hectares",
  "meters": "Metros",
  "miles": "Milhas",
  "sqfeet": "Pés²",
  "sqmeters": "Metros²",
  "sqmiles": "Milhas²",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/fil_PH.json<|end_filename|>
{
  "measure": "Sukat",
  "measureDistancesAndAreas": "Kalkulahin ang tamang distansya at sukat",
  "createNewMeasurement": "Lumikha ng isang bagong pagsukat",
  "startCreating": "Simulan ang paglikha ng isang pagsukat sa pamamagitan ng pagdaragdag ng mga puntos sa mapa",
  "finishMeasurement": "Tapusin ang pagsukat",
  "lastPoint": "Huling punto sa mapa",
  "area": "Sukat",
  "perimeter": "Palibot",
  "pointLocation": "Lokasyon ng punto",
  "areaMeasurement": "Kabuuang sukat",
  "linearMeasurement": "Pagsukat ng guhit",
  "pathDistance": "Distansya ng daanan",
  "centerOnArea": "I-sentro sa lugar na ito",
  "centerOnLine": "I-sentro sa linya na ito",
  "centerOnLocation": "I-sentro sa lokasyong ito",
  "cancel": "Kanselahin",
  "delete": "Tanggalin",
  "acres": "Acres",
  "feet": "Talampakan",
  "kilometers": "Kilometro",
  "hectares": "Hektarya",
  "meters": "Metro",
  "miles": "Milya",
  "sqfeet": "Talampakang Kwadrado",
  "sqmeters": "Metro Kwadrado",
  "sqmiles": "Milya Kwadrado",
  "decPoint": ".",
  "thousandsSep": ","
}


<|start_filename|>languages/sk.json<|end_filename|>
{
  "measure": "Merania",
  "measureDistancesAndAreas": "Merania vzdialeností (dĺžok) a plôch",
  "createNewMeasurement": "Prebieha nové meranie",
  "startCreating": "Vykonajte meranie tým, že do mapy doplníte body.",
  "finishMeasurement": "Ukončiť meranie",
  "lastPoint": "Poslendý bod",
  "area": "Plocha",
  "perimeter": "Hranica",
  "pointLocation": "Poloha bodu",
  "areaMeasurement": "Zmeraná plocha",
  "linearMeasurement": "Zmeraná vzdialenosť (dĺžka)",
  "pathDistance": "Vzdialenosť pozdĺž cesty",
  "centerOnArea": "Centrovať na túto plochu",
  "centerOnLine": "Centrovať na ťah tejto línie",
  "centerOnLocation": "Centrovať na toto miesto",
  "cancel": "Zrušiť",
  "delete": "Zmazať",
  "acres": "Zajtra",
  "feet": "Stopa",
  "kilometers": "Kilometer",
  "hectares": "Hektár",
  "meters": "Meter",
  "miles": "Míle",
  "sqfeet": "Stopa štvorcová",
  "sqmeters": "Meter štvorcový",
  "sqmiles": "Štvorcové míle",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>src/templates/index.js<|end_filename|>
export { default as controlTemplate } from './control-template.html';
export { default as resultsTemplate } from './results-template.html';
export { default as pointPopupTemplate } from './point-popup-template.html';
export { default as linePopupTemplate } from './line-popup-template.html';
export { default as areaPopupTemplate } from './area-popup-template.html';


<|start_filename|>languages/cz.json<|end_filename|>
{
  "measure": "Měření",
  "measureDistancesAndAreas": "měření vzdáleností a výměr",
  "createNewMeasurement": "provést nové měření",
  "startCreating": "proveďte měření přidáním bodů do mapy",
  "finishMeasurement": "ukončit měření",
  "lastPoint": "poslední bod",
  "area": "výměra",
  "perimeter": "okraj",
  "pointLocation": "poloha bodu",
  "areaMeasurement": "naměřená výměra",
  "linearMeasurement": "naměřená vzdálenost",
  "pathDistance": "vzdálenost podél úseku",
  "centerOnArea": "zacentrovat na tuto plochu",
  "centerOnLine": "zacentrovat na tento úsek",
  "centerOnLocation": "zacentrovat na tuto obec",
  "cancel": "zrušit",
  "delete": "smazat",
  "acres": "jitra",
  "feet": "stopy",
  "kilometers": "kilometry",
  "hectares": "hektary",
  "meters": "metry",
  "miles": "míle",
  "sqfeet": "čtvereční stopy",
  "sqmeters": "čtvereční metry",
  "sqmiles": "čtvereční míle",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>webpack.prod.js<|end_filename|>
const glob = require('glob');
const resolve = require('path').resolve;

const CopyPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const I18nPlugin = require('i18n-webpack-plugin');

const BUILD_DIR = resolve(__dirname, 'dist');

const copyAssets = new CopyPlugin([{ from: './assets', to: 'assets', ignore: '*.svg' }]);
const copySite = new CopyPlugin([{ from: './example', to: './' }]);

const extractSass = new ExtractTextPlugin({ filename: 'leaflet-measure.css' });

const jsLoader = {
  test: /\.js$/,
  exclude: /node_modules/,
  use: {
    loader: 'babel-loader?optional=runtime',
    options: { presets: ['babel-preset-env'] }
  }
};

const htmlLoader = {
  test: /\.html$/,
  use: { loader: 'html-loader?interpolate' }
};

const scssLoader = {
  test: /\.scss$/,
  use: extractSass.extract({
    use: [{ loader: 'css-loader', options: { url: false } }, { loader: 'sass-loader' }],
    fallback: 'style-loader'
  })
};

// Build for all languages in the in `./languages` using I18nPlugin
const languages = glob.sync('./languages/*.json').reduce(
  (dict, filePath) => {
    const match = /\/languages\/(.+).json/.exec(filePath);
    dict[match[1]] = require(filePath);
    return dict;
  },
  {
    default: require(`./languages/en.json`)
  }
);

module.exports = Object.keys(languages).map(language => {
  const langPrefix = language === 'default' ? '' : `.${language}`;
  return {
    entry: ['./src/leaflet-measure.js'],
    output: {
      filename: `leaflet-measure${langPrefix}.js`,
      path: BUILD_DIR,
      publicPath: '/dist/'
    },
    module: {
      rules: [jsLoader, htmlLoader, scssLoader]
    },
    plugins: [copySite, copyAssets, extractSass, new I18nPlugin(languages[language])]
  };
});


<|start_filename|>languages/sv.json<|end_filename|>
{
  "measure": "Mäta",
  "measureDistancesAndAreas": "Mäta avstånd och yta",
  "createNewMeasurement": "Skapa ny mätning",
  "startCreating": "Börja mätning genom att lägga till punkter på kartan",
  "finishMeasurement": "Avsluta mätning",
  "lastPoint": "Sista punkt",
  "area": "Yta",
  "perimeter": "Omkrets",
  "pointLocation": "Punktens Läge",
  "areaMeasurement": "Arealmätning",
  "linearMeasurement": "Längdmätning",
  "pathDistance": "Total linjelängd",
  "centerOnArea": "Centrera på detta område",
  "centerOnLine": "Centrera på denna linje",
  "centerOnLocation": "Centrera på denna punkt",
  "cancel": "Avbryt",
  "delete": "Radera",
  "acres": "Tunnland",
  "feet": "Fot",
  "kilometers": "Kilometer",
  "hectares": "Hektar",
  "meters": "Meter",
  "miles": "Miles",
  "sqfeet": "Kvadratfot",
  "sqmeters": "Kvadratmeter",
  "sqmiles": "Kvadratmiles",
  "decPoint": ",",
  "thousandsSep": " "
}


<|start_filename|>languages/sl.json<|end_filename|>
{
  "measure": "Meritve",
  "measureDistancesAndAreas": "Meritve razdalj in površin",
  "createNewMeasurement": "Napravi novo meritev",
  "startCreating": "Izvedi meritev z vstavljanjem točk v zemljevid",
  "finishMeasurement": "Končaj meritev",
  "lastPoint": "Zadnja točka",
  "area": "Površina",
  "perimeter": "Rob",
  "pointLocation": "Položaj točke",
  "areaMeasurement": "Izmerjena površina",
  "linearMeasurement": "Izmerjena razdalja ",
  "pathDistance": "Razdalja vzdolž poti ",
  "centerOnArea": "Centriraj na to površino",
  "centerOnLine": "Centriraj na to vrstico",
  "centerOnLocation": "Centriraj na ta kraj",
  "cancel": "Prekliči",
  "delete": "Briši",
  "acres": "jutri",
  "feet": "čevelj",
  "kilometers": "kilometer",
  "hectares": "hektar",
  "meters": "meter",
  "miles": "milja",
  "sqfeet": "kvadratni čevelj",
  "sqmeters": "kvadratni meter",
  "sqmiles": "kvadratna milja",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/fa.json<|end_filename|>
{
  "measure": "اندازه گیری",
  "measureDistancesAndAreas": "اندازه گیری فاصله و مساحت",
  "createNewMeasurement": "ثبت اندازه گیری جدید",
  "startCreating": "برای ثبت اندازه گیری جدید نقاطی را به نقشه اضافه کنید.",
  "finishMeasurement": "پایان اندازه گیری",
  "lastPoint": "آخرین نقطه",
  "area": "مساحت",
  "perimeter": "محیط",
  "pointLocation": "مکان نقطه",
  "areaMeasurement": "اندازه گیری مساحت",
  "linearMeasurement": "اندازه گیری خطی",
  "pathDistance": "فاصله مسیر",
  "centerOnArea": "مرکز این سطح",
  "centerOnLine": "مرکز این خط",
  "centerOnLocation": "مرکز این مکان",
  "cancel": "لغو",
  "delete": "حذف",
  "acres": "ایکر",
  "feet": "پا",
  "kilometers": "کیلومتر",
  "hectares": "هکتار",
  "meters": "متر",
  "miles": "مایل",
  "sqfeet": "پا مربع",
  "sqmeters": "متر مربع",
  "sqmiles": "مایل مربع",
  "decPoint": "/",
  "thousandsSep": ","
}


<|start_filename|>webpack.dev.js<|end_filename|>
const resolve = require('path').resolve;

const CopyPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const I18nPlugin = require('i18n-webpack-plugin');

const BUILD_DIR = resolve(__dirname, 'dist');

const copyAssets = new CopyPlugin([{ from: './assets', to: 'assets', ignore: '*.svg' }]);
const copySite = new CopyPlugin([{ from: './example', to: './' }]);

const extractSass = new ExtractTextPlugin({ filename: 'leaflet-measure.css' });

const htmlLoader = {
  test: /\.html$/,
  use: { loader: 'html-loader?interpolate' }
};

const scssLoader = {
  test: /\.scss$/,
  use: extractSass.extract({
    use: [
      {
        loader: 'css-loader',
        options: { sourceMap: true, url: false }
      },
      {
        loader: 'sass-loader',
        options: { sourceMap: true }
      }
    ],
    fallback: 'style-loader'
  })
};

const devLanguage = require('./languages/en.json');

module.exports = {
  entry: ['./src/leaflet-measure.js'],
  output: {
    filename: 'leaflet-measure.js',
    path: BUILD_DIR
  },
  devServer: {
    contentBase: BUILD_DIR
  },
  module: {
    rules: [htmlLoader, scssLoader]
  },
  plugins: [copySite, copyAssets, extractSass, new I18nPlugin(devLanguage)],
  devtool: 'eval-source-map'
};


<|start_filename|>languages/hu.json<|end_filename|>
 {
    "measure": "Mérés",
    "measureDistancesAndAreas": "Távolság- és területmérések",
    "createNewMeasurement": "Egy új mérés elvégzése",
    "startCreating": "Végezzen mérést pontok elhelyezésével a térképen.",
    "finishMeasurement": "Mérés befejezése",
    "lastPoint": "Utolsó pont",
    "area": "Terület",
    "perimeter": "Szegély",
    "pointLocation": "Pont helyzete",
    "areaMeasurement": "Mért terület",
    "linearMeasurement": "Mért távolság",
    "pathDistance": "Kijelölt vonal távolsága",
    "centerOnArea": "Közelítés erre a területre",
    "centerOnLine": "Közelítés erre a vonalra",
    "centerOnLocation": "A település közepére igazítani",
    "cancel": "Mégse",
    "delete": "Törlés",
    "acres": "Holnap",
    "feet": "Láb",
    "kilometers": "Kilométer",
    "hectares": "Hektár",
    "meters": "Méter",
    "miles": "Mérföld",
    "sqfeet": "Négyzetláb Feet",
    "sqmeters": "Négyzetméter",
    "sqmiles": "Négyzetmérföld",
    "decPoint": ",",
    "thousandsSep": " "
}


<|start_filename|>languages/nl.json<|end_filename|>
{
  "measure": "Meet",
  "measureDistancesAndAreas": "Meet afstanden en oppervlakten",
  "createNewMeasurement": "Maak een nieuwe meting",
  "startCreating": "Begin een meting door punten toe te voegen aan de kaart",
  "finishMeasurement": "Beëindig meting",
  "lastPoint": "Laatste punt",
  "area": "Oppervlakte",
  "perimeter": "Omtrek",
  "pointLocation": "Locatie punt",
  "areaMeasurement": "Oppervlakte meting",
  "linearMeasurement": "Gemeten afstand",
  "pathDistance": "Afstand over de lijn",
  "centerOnArea": "Centreer op dit gebied",
  "centerOnLine": "Centreer op deze lijn",
  "centerOnLocation": "Centreer op deze locatie",
  "cancel": "Annuleer",
  "delete": "Wis",
  "acres": "are",
  "feet": "Voet",
  "kilometers": "km",
  "hectares": "ha",
  "meters": "m",
  "miles": "Mijl",
  "sqfeet": "Vierkante Feet",
  "sqmeters": "m2",
  "sqmiles": "Vierkante Mijl",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/pt_PT.json<|end_filename|>
{
  "measure": "Medições",
  "measureDistancesAndAreas": "Medir distâncias e áreas",
  "createNewMeasurement": "Criar uma nova medição",
  "startCreating": "Adicione pontos no mapa, para criar uma nova medição",
  "finishMeasurement": "Finalizar medição",
  "lastPoint": "Último ponto",
  "area": "Área",
  "perimeter": "Perímetro",
  "pointLocation": "Localização do ponto",
  "areaMeasurement": "Medição da área",
  "linearMeasurement": "Medição linear",
  "pathDistance": "Distância",
  "centerOnArea": "Centrar nesta área",
  "centerOnLine": "Centrar nesta linha",
  "centerOnLocation": "Centrar nesta localização",
  "cancel": "Cancelar",
  "delete": "Eliminar",
  "acres": "Acres",
  "feet": "Pés",
  "kilometers": "Kilômetros",
  "hectares": "Hectares",
  "meters": "Metros",
  "miles": "Milhas",
  "sqfeet": "Pés²",
  "sqmeters": "Metros²",
  "sqmiles": "Milhas²",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/de.json<|end_filename|>
{
  "measure": "Messung",
  "measureDistancesAndAreas": "Messung von Abständen und Flächen",
  "createNewMeasurement": "Eine neue Messung durchführen",
  "startCreating": "Führen Sie die Messung durch, indem Sie der Karte Punkte hinzufügen.",
  "finishMeasurement": "Messung beenden",
  "lastPoint": "Letzter Punkt",
  "area": "Fläche",
  "perimeter": "Rand",
  "pointLocation": "Lage des Punkts",
  "areaMeasurement": "Gemessene Fläche",
  "linearMeasurement": "Gemessener Abstand",
  "pathDistance": "Abstand entlang des Pfads",
  "centerOnArea": "Auf diese Fläche zentrieren",
  "centerOnLine": "Auf diesen Linienzug zentrieren",
  "centerOnLocation": "Auf diesen Ort zentrieren",
  "cancel": "Abbrechen",
  "delete": "Löschen",
  "acres": "Morgen",
  "feet": "Fuß",
  "kilometers": "Kilometer",
  "hectares": "Hektar",
  "meters": "Meter",
  "miles": "Meilen",
  "sqfeet": "Quadratfuß",
  "sqmeters": "Quadratmeter",
  "sqmiles": "Quadratmeilen",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/en.json<|end_filename|>
{
  "measure": "Measure",
  "measureDistancesAndAreas": "Measure distances and areas",
  "createNewMeasurement": "Create a new measurement",
  "startCreating": "Start creating a measurement by adding points to the map",
  "finishMeasurement": "Finish measurement",
  "lastPoint": "Last point",
  "area": "Area",
  "perimeter": "Perimeter",
  "pointLocation": "Point location",
  "areaMeasurement": "Area measurement",
  "linearMeasurement": "Linear measurement",
  "pathDistance": "Path distance",
  "centerOnArea": "Center on this area",
  "centerOnLine": "Center on this line",
  "centerOnLocation": "Center on this location",
  "cancel": "Cancel",
  "delete": "Delete",
  "acres": "Acres",
  "feet": "Feet",
  "kilometers": "Kilometers",
  "hectares": "Hectares",
  "meters": "Meters",
  "miles": "Miles",
  "sqfeet": "Sq Feet",
  "sqmeters": "Sq Meters",
  "sqmiles": "Sq Miles",
  "decPoint": ".",
  "thousandsSep": ","
}


<|start_filename|>languages/ca.json<|end_filename|>
{
  "measure": "Medir",
  "measureDistancesAndAreas": "Medeix distancies i àreas",
  "createNewMeasurement": "Crear nova medicio",
  "startCreating": "Començi a crear la medicio afegint punts al mapa",
  "finishMeasurement": "Acabar la medició",
  "lastPoint": "Últim punt",
  "area": "Área",
  "perimeter": "Perómetre",
  "pointLocation": "Localizació del punt",
  "areaMeasurement": "Medició d\"área",
  "linearMeasurement": "Medició lineal",
  "pathDistance": "Distancia de ruta",
  "centerOnArea": "Centrar en aquesta área",
  "centerOnLine": "Centrar en aquesta línia",
  "centerOnLocation": "Centrar en aquesta localizació",
  "cancel": "Cancel·lar",
  "delete": "Eliminar",
  "acres": "Acres",
  "feet": "Peus",
  "kilometers": "Quilòmetres",
  "hectares": "Hectàreas",
  "meters": "Metros",
  "miles": "Milles",
  "sqfeet": "Peus cuadrats",
  "sqmeters": "Metres cuadrats",
  "sqmiles": "Milles cuadrades",
  "decPoint": ".",
  "thousandsSep": " "
}


<|start_filename|>languages/ro.json<|end_filename|>
{
  "measure": "Măsurare",
  "measureDistancesAndAreas": "Măsurarea distanțelor și a suprafețelor",
  "createNewMeasurement": "Efectuează o măsurare nouă",
  "startCreating": "Efectuează o măsurare nouă alegând noi puncte pe hartă",
  "finishMeasurement": "Opreste măsurarea",
  "lastPoint": "Ultimul punct",
  "area": "Suprafața",
  "perimeter": "Marginea",
  "pointLocation": "Locul punctului",
  "areaMeasurement": "Suprafața măsurată",
  "linearMeasurement": "Distanța măsurată",
  "pathDistance": "Distanța dealungul potecii",
  "centerOnArea": "Centrează pe această poziție",
  "centerOnLine": "Centrează pe această linie",
  "centerOnLocation": "Centrează pe acest loc.",
  "cancel": "Oprește",
  "delete": "Șterge",
  "acres": "Mâine",
  "feet": "Picioare",
  "kilometers": "Kilometri",
  "hectares": "Hectare",
  "meters": "Metri",
  "miles": "Mile",
  "sqfeet": "Picioare pătrate",
  "sqmeters": "Metri pătrați",
  "sqmiles": "Mile pătrate",
  "decPoint": ",",
  "thousandsSep": "."
}


<|start_filename|>languages/it.json<|end_filename|>
{
  "measure": "Misura",
  "measureDistancesAndAreas": "Misura distanze e aree",
  "createNewMeasurement": "Crea una nuova misurazione",
  "startCreating": "Comincia a creare una misurazione aggiungendo punti alla mappa",
  "finishMeasurement": "Misurazione conclusa",
  "lastPoint": "Ultimo punto",
  "area": "Area",
  "perimeter": "Perimetro",
  "pointLocation": "Posizione punto",
  "areaMeasurement": "Misura area",
  "linearMeasurement": "Misura lineare",
  "pathDistance": "Distanza percorso",
  "centerOnArea": "Centra su questa area",
  "centerOnLine": "Centra su questa linea",
  "centerOnLocation": "Centra su questa posizione",
  "cancel": "Annulla",
  "delete": "Cancella",
  "acres": "Acri",
  "feet": "Piedi",
  "kilometers": "Chilometri",
  "hectares": "Ettari",
  "meters": "Metri",
  "miles": "Miglia",
  "sqfeet": "Piedi quadri",
  "sqmeters": "Metri quadri",
  "sqmiles": "Miglia quadre",
  "decPoint": ".",
  "thousandsSep": ","
}


<|start_filename|>src/utils.js<|end_filename|>
// NOTE. inspired from https://github.com/taijinlee/humanize
export function numberFormat(number, decimals = 2, decPoint = '.', thousandsSep = ',') {
  const sign = number < 0 ? '-' : '';
  const num = Math.abs(+number || 0);
  const intPart = parseInt(num.toFixed(decimals), 10) + '';
  const j = intPart.length > 3 ? intPart.length % 3 : 0;

  return [
    sign,
    j ? intPart.substr(0, j) + thousandsSep : '',
    intPart.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + thousandsSep),
    decimals
      ? `${decPoint}${Math.abs(num - intPart)
          .toFixed(decimals)
          .slice(2)}`
      : ''
  ].join('');
}
