How to use the globalize.culture function in globalize

To help you get started, we’ve selected a few globalize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github insin / react-examples / redux-form-components / index.js View on Github external
require('bootstrap/dist/css/bootstrap.min.css')
require('react-widgets/dist/css/react-widgets.css')
require('./react-widgets-overrides.css')

var React = require('react')
var {Provider} = require('react-redux')
var {render} = require('react-dom')

// Configure react-widgets localisation to use Globalize 0.1.x
var Globalize = require('globalize')
require('globalize/lib/cultures/globalize.culture.en-GB')
Globalize.culture('en-GB')
require('react-widgets/lib/localizers/globalize')(Globalize)

var AddTravel = require('./components/AddTravel')
var configureStore = require('./configureStore')

var store = configureStore()

render(
  ,
  document.querySelector('#example')
)
github coveo / search-ui / assets / gen / js / cultures / it.js View on Github external
"NoTitle": "Nessun titolo",
  "CurrentSelections": "Selezioni correnti",
  "AllContent": "Intero contenuto",
  "CancelLastAction": "Annulla ultima azione",
  "SearchTips": "Suggerimenti per ricerca",
  "CheckSpelling": "Verificare l'ortografia delle parole chiave.",
  "TryUsingFewerKeywords": "Provare a usare meno parole chiave o parole chiave diverse e più generiche.",
  "SelectFewerFilters": "Selezionare meno filtri per ampliare la ricerca.",
}

  var locales = String["locales"] || (String["locales"] = {});
  locales["it"] = merge(locales["it"], dict);
  String["toLocaleString"].call(this, { "it": dict });
  String["locale"] = "it";
  String["defaultLocale"] = "en";
  Globalize.culture("it")
}
github coveo / search-ui / assets / gen / js / cultures / no.js View on Github external
"NoTitle": "Ingen tittel",
  "CurrentSelections": "Gjeldende valg",
  "AllContent": "Alt innhold",
  "CancelLastAction": "Avbryt siste handling",
  "SearchTips": "Søketips",
  "CheckSpelling": "Sjekk staving for dine nøkkelord",
  "TryUsingFewerKeywords": "Prøv å bruke færre, andre eller flere generelle nøkkelord.",
  "SelectFewerFilters": "Velg færre filtre for å utvide søket ditt",
}

  var locales = String["locales"] || (String["locales"] = {});
  locales["no"] = merge(locales["no"], dict);
  String["toLocaleString"].call(this, { "no": dict });
  String["locale"] = "no";
  String["defaultLocale"] = "en";
  Globalize.culture("no")
}
github coveo / search-ui / assets / gen / js / cultures / nl.js View on Github external
"filetype_spwfpublibrarylist": "WFPUB Library",
  "filetype_spwhereabout": "Waar is",
  "filetype_spwhereaboutlist": "Waar zijn",
  "filetype_spdocumentlink": "Linken naar een dokument",
  "filetype_spdocumentset": "Dokument set",
  "filetype_spmicrofeedpost": "",
  "filetype_spmicrofeedlist": "",
  "filetype_splistfolder": "Mappenlijst",
}

  var locales = String["locales"] || (String["locales"] = {});
  locales["nl"] = merge(locales["nl"], dict);
  String["toLocaleString"].call(this, { "nl": dict });
  String["locale"] = "nl";
  String["defaultLocale"] = "en";
  Globalize.culture("nl")
}
github coveo / search-ui / assets / gen / js / cultures / zh-tw.js View on Github external
"Author": "作者",
  "NoTitle": "無標題",
  "CurrentSelections": "當前選擇",
  "AllContent": "所有內容",
  "CancelLastAction": "取消最後一個動作",
  "SearchTips": "搜尋提示",
  "CheckSpelling": "檢查關鍵字的拼寫。",
  "TryUsingFewerKeywords": "嘗試使用更少、更常用或不同的關鍵字。",
  "SelectFewerFilters": "選擇較少的篩選條件以擴大您的搜尋範圍。",
}
  var locales = String["locales"] || (String["locales"] = {});
  locales["zh-TW"] = merge(locales["zh-TW"], dict);
  String["toLocaleString"].call(this, { "zh-TW": dict });
  String["locale"] = "zh-TW";
  String["defaultLocale"] = "en";
  Globalize.culture("zh-TW")})();
if(!window.Coveo){window.Coveo = {};}
github coveo / search-ui / assets / gen / js / cultures / id.js View on Github external
"Author": "Penyusun",
  "NoTitle": "Tanpa judul",
  "CurrentSelections": "Pilihan saat ini",
  "AllContent": "Semua isi",
  "CancelLastAction": "Batalkan tindakan terakhir",
  "SearchTips": "Kiat pencarian",
  "CheckSpelling": "Periksa ejaan kata kunci Anda.",
  "TryUsingFewerKeywords": "Coba gunakan kata kunci yang lebih sedikit, berbeda, atau lebih umum.",
  "SelectFewerFilters": "Pilih lebih sedikit filter untuk memperluas pencarian Anda.",
}
  var locales = String["locales"] || (String["locales"] = {});
  locales["id"] = merge(locales["id"], dict);
  String["toLocaleString"].call(this, { "id": dict });
  String["locale"] = "id";
  String["defaultLocale"] = "en";
  Globalize.culture("id")})();
if(!window.Coveo){window.Coveo = {};}
github coveo / search-ui / assets / gen / js / cultures / sv.js View on Github external
"NoTitle": "Ingen Titel",
  "CurrentSelections": "Aktuella val",
  "AllContent": "Allt innehåll",
  "CancelLastAction": "Avbryt senaste åtgärd",
  "SearchTips": "Söktips",
  "CheckSpelling": "Kontrollera stavningen på dina nyckelord",
  "TryUsingFewerKeywords": "Försök att använda färre, annorlunda eller mer generella nyckelord",
  "SelectFewerFilters": "Välj färre filter för att bredda din sökning.",
}

  var locales = String["locales"] || (String["locales"] = {});
  locales["sv"] = merge(locales["sv"], dict);
  String["toLocaleString"].call(this, { "sv": dict });
  String["locale"] = "sv";
  String["defaultLocale"] = "en";
  Globalize.culture("sv")
}
github coveo / search-ui / assets / gen / js / cultures / es-es.js View on Github external
"NoTitle": "Sin título",
  "CurrentSelections": "Selecciones actuales",
  "AllContent": "Todo el contenido",
  "CancelLastAction": "Cancelar última acción",
  "SearchTips": "Sugerencias de búsqueda",
  "CheckSpelling": "Compruebe la ortografía de las palabras clave.",
  "TryUsingFewerKeywords": "Pruebe a utilizar menos palabras, o palabras distintas o más generales.",
  "SelectFewerFilters": "Seleccione menos filtros para ampliar su búsqueda.",
}

  var locales = String["locales"] || (String["locales"] = {});
  locales["es-ES"] = merge(locales["es-ES"], dict);
  String["toLocaleString"].call(this, { "es-ES": dict });
  String["locale"] = "es-ES";
  String["defaultLocale"] = "en";
  Globalize.culture("es-ES")
}
github coveo / search-ui / src / utils / CurrencyUtils.ts View on Github external
static currencyToString(value: number, options?: ICurrencyToStringOptions): string {
    if (Utils.isNullOrUndefined(value)) {
      return '';
    }
    value = Number(value);

    Assert.isNumber(value);

    options = new DefaultCurrencyToStringOptions().merge(options);

    var currency = Globalize.culture().numberFormat.currency;
    var backup = currency.symbol;

    if (Utils.isNonEmptyString(options.symbol)) {
      currency.symbol = options.symbol;
    }

    var str = Globalize.format(value, 'c' + options.decimals.toString());
    currency.symbol = backup;

    return str;
  }
}