@magmamath/students-features 1.3.18 → 1.3.19-test-ids-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/i18n/i18n.js.map +1 -1
- package/dist/module/i18n/i18n.js.map +1 -1
- package/dist/typescript/commonjs/i18n/i18n.d.ts +4 -3
- package/dist/typescript/commonjs/i18n/i18n.d.ts.map +1 -1
- package/dist/typescript/module/i18n/i18n.d.ts +4 -3
- package/dist/typescript/module/i18n/i18n.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/i18n/.generated/schema.json +1 -1
- package/src/i18n/i18n.ts +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_i18next","_interopRequireDefault","require","_reactI18next","_constants","e","__esModule","default","NAMESPACE","exports","TranslationNamespace","STUDENTS_FEATURES","getText","key","options","i18next","t","ns","useText","useTranslation"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAuF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhF,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,+BAAoB,CAACC,iBAAiB;
|
|
1
|
+
{"version":3,"names":["_i18next","_interopRequireDefault","require","_reactI18next","_constants","e","__esModule","default","NAMESPACE","exports","TranslationNamespace","STUDENTS_FEATURES","getText","key","options","i18next","t","ns","useText","useTranslation"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAuF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhF,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,+BAAoB,CAACC,iBAAiB;AAKxD,MAAMC,OAAgB,GAAIA,CAACC,GAAmB,EAAEC,OAAgB,KACrEC,gBAAO,CAACC,CAAC,CAACH,GAAG,EAAE;EAAEI,EAAE,EAAET,SAAS;EAAE,GAAGM;AAAQ,CAAC,CAAa;AAAAL,OAAA,CAAAG,OAAA,GAAAA,OAAA;AAEpD,MAAMM,OAAO,GAAGA,CAAA,KAAe,IAAAC,4BAAc,EAACX,SAAS,CAAC,CAACQ,CAAC;AAAAP,OAAA,CAAAS,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["i18next","useTranslation","TranslationNamespace","NAMESPACE","STUDENTS_FEATURES","getText","key","options","t","ns","useText"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":";;AAAA,OAAOA,OAAO,
|
|
1
|
+
{"version":3,"names":["i18next","useTranslation","TranslationNamespace","NAMESPACE","STUDENTS_FEATURES","getText","key","options","t","ns","useText"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":";;AAAA,OAAOA,OAAO,MAAgC,SAAS;AACvD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,oBAAoB,QAAQ,kDAAkD;AAEvF,OAAO,MAAMC,SAAS,GAAGD,oBAAoB,CAACE,iBAAiB;AAK/D,OAAO,MAAMC,OAAgB,GAAIA,CAACC,GAAmB,EAAEC,OAAgB,KACrEP,OAAO,CAACQ,CAAC,CAACF,GAAG,EAAE;EAAEG,EAAE,EAAEN,SAAS;EAAE,GAAGI;AAAQ,CAAC,CAAa;AAE3D,OAAO,MAAMG,OAAO,GAAGA,CAAA,KAAeT,cAAc,CAACE,SAAS,CAAC,CAACK,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ParseKeys } from 'i18next';
|
|
1
|
+
import { ParseKeys, TFunction } from 'i18next';
|
|
2
2
|
import { TranslationNamespace } from '@magmamath/frontend-config/translation/constants';
|
|
3
3
|
export declare const NAMESPACE = TranslationNamespace.STUDENTS_FEATURES;
|
|
4
4
|
export type TranslationKey = ParseKeys<typeof NAMESPACE>;
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
5
|
+
export type GetText = TFunction<typeof NAMESPACE>;
|
|
6
|
+
export declare const getText: GetText;
|
|
7
|
+
export declare const useText: () => GetText;
|
|
7
8
|
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAA;AAEvF,eAAO,MAAM,SAAS,yCAAyC,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAA;AAEjD,eAAO,MAAM,OAAO,EAAE,OACqC,CAAA;AAE3D,eAAO,MAAM,OAAO,QAAO,OAAsC,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ParseKeys } from 'i18next';
|
|
1
|
+
import { ParseKeys, TFunction } from 'i18next';
|
|
2
2
|
import { TranslationNamespace } from '@magmamath/frontend-config/translation/constants';
|
|
3
3
|
export declare const NAMESPACE = TranslationNamespace.STUDENTS_FEATURES;
|
|
4
4
|
export type TranslationKey = ParseKeys<typeof NAMESPACE>;
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
5
|
+
export type GetText = TFunction<typeof NAMESPACE>;
|
|
6
|
+
export declare const getText: GetText;
|
|
7
|
+
export declare const useText: () => GetText;
|
|
7
8
|
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAA;AAEvF,eAAO,MAAM,SAAS,yCAAyC,CAAA;AAE/D,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAA;AAEjD,eAAO,MAAM,OAAO,EAAE,OACqC,CAAA;AAE3D,eAAO,MAAM,OAAO,QAAO,OAAsC,CAAA"}
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"allLockedSubtitle": "Your teacher has locked all grades.\nAsk them to unlock grades so you can start practicing.",
|
|
35
35
|
"allLockedTitle": "All grades are locked",
|
|
36
36
|
"allTime": "All time",
|
|
37
|
-
"andMore": "and
|
|
37
|
+
"andMore": "and {{ count }} more...",
|
|
38
38
|
"fluency": "Fluency",
|
|
39
39
|
"grade": "Grade",
|
|
40
40
|
"gradeK": "K",
|
package/src/i18n/i18n.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import i18next, { ParseKeys } from 'i18next'
|
|
1
|
+
import i18next, { ParseKeys, TFunction } from 'i18next'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
3
|
import { TranslationNamespace } from '@magmamath/frontend-config/translation/constants'
|
|
4
4
|
|
|
5
5
|
export const NAMESPACE = TranslationNamespace.STUDENTS_FEATURES
|
|
6
6
|
|
|
7
7
|
export type TranslationKey = ParseKeys<typeof NAMESPACE>
|
|
8
|
+
export type GetText = TFunction<typeof NAMESPACE>
|
|
8
9
|
|
|
9
|
-
export const getText = (key: TranslationKey, options?:
|
|
10
|
-
i18next.t(key, { ns: NAMESPACE, ...options })
|
|
10
|
+
export const getText: GetText = ((key: TranslationKey, options?: object) =>
|
|
11
|
+
i18next.t(key, { ns: NAMESPACE, ...options })) as GetText
|
|
11
12
|
|
|
12
|
-
export const useText = () => useTranslation(NAMESPACE).t
|
|
13
|
+
export const useText = (): GetText => useTranslation(NAMESPACE).t
|