Moved i18n to utils

This commit is contained in:
Sam Potts 2018-08-13 21:39:16 +10:00
parent 059205c378
commit 297f297d18
5 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,6 @@
// ==========================================================================
import controls from './controls';
import i18n from './i18n';
import support from './support';
import { dedupe } from './utils/arrays';
import browser from './utils/browser';
@ -18,6 +17,7 @@ import {
} from './utils/elements';
import { on, triggerEvent } from './utils/events';
import fetch from './utils/fetch';
import i18n from './utils/i18n';
import is from './utils/is';
import { getHTML } from './utils/strings';
import { parseUrl } from './utils/urls';

2
src/js/controls.js vendored
View File

@ -5,13 +5,13 @@
import captions from './captions';
import html5 from './html5';
import i18n from './i18n';
import support from './support';
import { repaint, transitionEndEvent } from './utils/animation';
import { dedupe } from './utils/arrays';
import browser from './utils/browser';
import { createElement, emptyElement, getAttributesFromSelector, getElement, getElements, hasClass, matches, removeElement, setAttributes, setFocus, toggleClass, toggleHidden } from './utils/elements';
import { off, on } from './utils/events';
import i18n from './utils/i18n';
import is from './utils/is';
import loadSprite from './utils/loadSprite';
import { extend } from './utils/objects';

View File

@ -6,9 +6,9 @@
/* global google */
import i18n from '../i18n';
import { createElement } from '../utils/elements';
import { triggerEvent } from '../utils/events';
import i18n from '../utils/i18n';
import is from '../utils/is';
import loadScript from '../utils/loadScript';
import { formatTime } from '../utils/time';

View File

@ -4,11 +4,11 @@
import captions from './captions';
import controls from './controls';
import i18n from './i18n';
import support from './support';
import browser from './utils/browser';
import { getElement, toggleClass } from './utils/elements';
import { ready, triggerEvent } from './utils/events';
import i18n from './utils/i18n';
import is from './utils/is';
import loadImage from './utils/loadImage';

View File

@ -2,9 +2,9 @@
// Plyr internationalization
// ==========================================================================
import is from './utils/is';
import { getDeep } from './utils/objects';
import { replaceAll } from './utils/strings';
import is from './is';
import { getDeep } from './objects';
import { replaceAll } from './strings';
const i18n = {
get(key = '', config = {}) {