8
0

locale-mock.js 378 B

123456789101112131415
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * A replacement for the {@link module:utils/locale~Locale} class.
  7. *
  8. * @memberOf tests.utils._utils
  9. */
  10. export default class Locale {
  11. constructor() {
  12. this.t = str => `t( ${ str } )`;
  13. }
  14. }