Fully migrate to ICU

This commit is contained in:
Jamie Kyle 2023-03-29 17:03:25 -07:00 committed by GitHub
parent d4e7177ba6
commit 5e647c55d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
274 changed files with 7948 additions and 1944 deletions

View file

@ -27,7 +27,7 @@ if (config.appInstance) {
let platform = '';
if (process.platform === 'darwin') {
if (process.arch === 'arm64') {
platform = ` (${i18n('appleSilicon')})`;
platform = ` (${i18n('icu:appleSilicon')})`;
} else {
platform = ' (Intel)';
}

View file

@ -3,5 +3,5 @@
const message = document.getElementById('message');
if (message) {
message.innerHTML = window.SignalContext.i18n('optimizingApplication');
message.innerHTML = window.SignalContext.i18n('icu:optimizingApplication');
}

View file

@ -47,9 +47,9 @@ window.ReactDOM = ReactDOM;
const { resolvedTranslationsLocale, preferredSystemLocales } = config;
moment.updateLocale(resolvedTranslationsLocale, {
relativeTime: {
s: window.i18n('timestamp_s'),
m: window.i18n('timestamp_m'),
h: window.i18n('timestamp_h'),
s: window.i18n('icu:timestamp_s'),
m: window.i18n('icu:timestamp_m'),
h: window.i18n('icu:timestamp_h'),
},
});
moment.locale(preferredSystemLocales);

View file

@ -30,12 +30,12 @@ contextBridge.exposeInMainWorld('SignalContext', {
let message;
if (forCalling) {
if (forCamera) {
message = SignalContext.i18n('videoCallingPermissionNeeded');
message = SignalContext.i18n('icu:videoCallingPermissionNeeded');
} else {
message = SignalContext.i18n('audioCallingPermissionNeeded');
message = SignalContext.i18n('icu:audioCallingPermissionNeeded');
}
} else {
message = SignalContext.i18n('audioPermissionNeeded');
message = SignalContext.i18n('icu:audioPermissionNeeded');
}
function onClose() {