mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 00:48:19 +01:00
Rename files
This commit is contained in:
26
ts/test-node/util/i18n.node.ts
Normal file
26
ts/test-node/util/i18n.node.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import { setupI18n } from '../../util/setupI18nMain.std.js';
|
||||
import { shouldNeverBeCalled } from '../../util/shouldNeverBeCalled.std.js';
|
||||
|
||||
const PATH = join(
|
||||
__dirname,
|
||||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'_locales',
|
||||
'en',
|
||||
'messages.json'
|
||||
);
|
||||
|
||||
export const enMessages = JSON.parse(readFileSync(PATH, 'utf8'));
|
||||
|
||||
export default setupI18n('en', enMessages, {
|
||||
renderEmojify: shouldNeverBeCalled,
|
||||
getLocaleDirection: shouldNeverBeCalled,
|
||||
getHourCyclePreference: shouldNeverBeCalled,
|
||||
});
|
||||
Reference in New Issue
Block a user