aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/i18n.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/i18n.js')
-rw-r--r--src/js/i18n.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/js/i18n.js b/src/js/i18n.js
deleted file mode 100644
index 5b0ebbab..00000000
--- a/src/js/i18n.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// ==========================================================================
-// Plyr internationalization
-// ==========================================================================
-
-import is from './utils/is';
-import { getDeep } from './utils/objects';
-import { replaceAll } from './utils/strings';
-
-const i18n = {
- get(key = '', config = {}) {
- if (is.empty(key) || is.empty(config)) {
- return '';
- }
-
- let string = getDeep(config.i18n, key);
-
- if (is.empty(string)) {
- return '';
- }
-
- const replace = {
- '{seektime}': config.seekTime,
- '{title}': config.title,
- };
-
- Object.entries(replace).forEach(([key, value]) => {
- string = replaceAll(string, key, value);
- });
-
- return string;
- },
-};
-
-export default i18n;