diff --git a/__test__/unit/user/user.test.ts b/__test__/unit/user/user.test.ts index 8226eb0cb..d29987ee3 100644 --- a/__test__/unit/user/user.test.ts +++ b/__test__/unit/user/user.test.ts @@ -55,11 +55,10 @@ describe('User tests', () => { expect(tags).toBe(tagsSample); }); - test('getLanguage should return the correct user language', async () => { await TestEnvironment.initialize(); - const languageSample = 'fr' + const languageSample = 'fr'; const propertyModel = getDummyPropertyOSModel(); propertyModel.set('language', languageSample); diff --git a/api.json b/api.json index d8bb208a1..9d51e4b80 100644 --- a/api.json +++ b/api.json @@ -490,6 +490,24 @@ } ], "returnType": "void" + }, + { + "name": "setLanguage", + "isAsync": false, + "args": [ + { + "name": "language", + "type": "string", + "optional": false + } + ], + "returnType": "void" + }, + { + "name": "getLanguage", + "isAsync": false, + "args": [], + "returnType": "string" } ], "properties": [