<commit_before>// client entry point, imports all client code
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { i18n } from 'meteor/universe:i18n';
import moment from 'moment';
// FIXME: importing this moment locale is causing a warning on browser's console
// without this import, setting moment's locale doesn't work
import 'moment/locale/pt-br';
import injectTapEventPlugin from 'react-tap-event-plugin';
import renderRoutes from '../imports/startup/client/routes.jsx';

Meteor.startup(() => {
  injectTapEventPlugin();

  // for now, only pt-BR supported
  moment.locale('pt-br', {
    calendar: {
      sameDay: '[Hoje]',
      nextDay: '[Amanhã]',
      nextWeek: 'ddd, DD [de] MMMM',
      lastDay: '[Ontem]',
      lastWeek: 'ddd, DD [de] MMMM',
      sameElse: 'ddd, DD [de] MMMM',
    },<commit_msg>Change deprecated method for changing moment's locale<commit_after>// client entry point, imports all client code
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { i18n } from 'meteor/universe:i18n';
import moment from 'moment';
// FIXME: importing this moment locale is causing a warning on browser's console
// without this import, setting moment's locale doesn't work
import 'moment/locale/pt-br';
import injectTapEventPlugin from 'react-tap-event-plugin';
import renderRoutes from '../imports/startup/client/routes.jsx';

Meteor.startup(() => {
  injectTapEventPlugin();

  // for now, only pt-BR supported
  moment.updateLocale('pt-br', {
    calendar: {
      sameDay: '[Hoje]',
      nextDay: '[Amanhã]',
      nextWeek: 'ddd, DD [de] MMMM',
      lastDay: '[Ontem]',
      lastWeek: 'ddd, DD [de] MMMM',
      sameElse: 'ddd, DD [de] MMMM',
    },
{'fraction_non_alphanumeric': 0.14244521337946944, 'fraction_numerical': 0.00461361014994233, 'mean_word_length': 3.806094182825485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1146459', 'n_tokens_mistral': 601, 'n_tokens_neox': 564, 'n_words': 174}