eggjs / egg-i18n
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
test/i18n.test.js has changed.

@@ -1,7 +1,5 @@
Loading
1 1
'use strict';
2 2
3 -
const LOCALE = Symbol('context#locale');
4 -
5 3
module.exports = {
6 4
  /**
7 5
   * get current request locale
@@ -9,11 +7,10 @@
Loading
9 7
   * @return {String} lower case locale string, e.g.: 'zh-cn', 'en-us'
10 8
   */
11 9
  get locale() {
12 -
    if (this[LOCALE] === undefined) return this.__getLocale();
13 -
    return this[LOCALE];
10 +
    return this.__getLocale();
14 11
  },
15 12
16 13
  set locale(l) {
17 -
    this[LOCALE] = l;
14 +
    return this.__setLocale(l);
18 15
  },
19 16
};
Files Coverage
app 100.00%
app.js 100.00%
config/config.default.js 100.00%
Project Totals (4 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading