diff --git a/electron-projects/ucap-webmessenger-electron/src/index.ts b/electron-projects/ucap-webmessenger-electron/src/index.ts
index 28aad24a..c216f832 100644
--- a/electron-projects/ucap-webmessenger-electron/src/index.ts
+++ b/electron-projects/ucap-webmessenger-electron/src/index.ts
@@ -98,7 +98,7 @@ autoUpdater.autoDownload = false;
autoUpdater.logger = log;
const ucapMessengerLauncher = new AutoLaunch({
- name: app.getName()
+ name: app.name
});
app.on(ElectronAppChannel.SecondInstance, (event, args, workingDirectory) => {
@@ -412,9 +412,9 @@ ipcMain.on(FileChannel.ReadFile, (event: IpcMainEvent, ...args: any[]) => {
try {
fse.readFile(root(args[0]), (err, data) => {
if (!!err) {
- event.returnValue = null;
+ event.returnValue = err;
} else {
- event.returnValue = new Blob([data]);
+ event.returnValue = data;
}
});
} catch (error) {
diff --git a/projects/ucap-webmessenger-app/src/app/app-translate.module.ts b/projects/ucap-webmessenger-app/src/app/app-translate.module.ts
index 77a3fd70..b1518a9a 100644
--- a/projects/ucap-webmessenger-app/src/app/app-translate.module.ts
+++ b/projects/ucap-webmessenger-app/src/app/app-translate.module.ts
@@ -4,10 +4,13 @@ import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { UCAP_NATIVE_SERVICE, NativeService } from '@ucap-webmessenger/native';
-export async function createTranslateLoader(nativeService: NativeService) {
- // tslint:disable-next-line: variable-name
+import { environment } from '../environments/environment';
+
+export function createTranslateLoader(nativeService: NativeService) {
const translateLoader = nativeService.getTranslateLoader(
- './assets/i18n/',
+ environment.production
+ ? './assets/i18n/'
+ : '/projects/ucap-webmessenger-app/src/assets/i18n/',
'.json'
);
diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.html
index 3c70f82d..a37f29ba 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.html
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.html
@@ -1,6 +1,6 @@
-
그룹
+
{{ 'group.label' | translate }}