Move to smartling for translation services

This commit is contained in:
Scott Nonnenberg 2022-09-27 14:01:06 -07:00 committed by GitHub
parent 620067342a
commit 5957c111cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 1394 additions and 64465 deletions

View file

@ -19,10 +19,10 @@ export async function afterPack({
if (electronPlatformName === 'darwin') {
const { productFilename } = packager.appInfo;
// en.lproj/locale.pak
// zh_CN.lproj/locale.pak
// en.lproj/*
// zh_CN.lproj/*
defaultLocale = 'en.lproj';
ourLocales = ourLocales.map(locale => `${locale}.lproj`);
ourLocales = ourLocales.map(locale => `${locale.replace(/-/g, '_')}.lproj`);
localesPath = path.join(
appOutDir,
@ -35,6 +35,8 @@ export async function afterPack({
electronPlatformName === 'win32'
) {
// Shared between windows and linux
// en-US.pak
// zh-CN.pak
defaultLocale = 'en-US.pak';
ourLocales = ourLocales.map(locale => {
if (locale === 'en') {