change default locale
Some checks failed
Check Misskey JS version / Check version (pull_request) Successful in 1m18s
Dockle / dockle (pull_request) Failing after 1m18s
API report (misskey.js) / report (pull_request) Successful in 4m31s
Test (backend) / unit (22.x) (pull_request) Failing after 6s
Test (backend) / e2e (22.x) (pull_request) Failing after 6s
Test (frontend) / vitest (22.x) (pull_request) Failing after 4s
Test (misskey.js) / test (22.x) (pull_request) Failing after 5s
Lint / pnpm_install (pull_request) Successful in 3m43s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m34s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m40s
Lint / lint (backend) (pull_request) Failing after 2m3s
Lint / lint (misskey-js) (pull_request) Successful in 5m18s
Lint / lint (sw) (pull_request) Successful in 2m31s
Lint / lint (frontend) (pull_request) Failing after 11m13s
Lint / typecheck (misskey-js) (pull_request) Successful in 3m52s
Lint / typecheck (backend) (pull_request) Successful in 7m14s
Some checks failed
Check Misskey JS version / Check version (pull_request) Successful in 1m18s
Dockle / dockle (pull_request) Failing after 1m18s
API report (misskey.js) / report (pull_request) Successful in 4m31s
Test (backend) / unit (22.x) (pull_request) Failing after 6s
Test (backend) / e2e (22.x) (pull_request) Failing after 6s
Test (frontend) / vitest (22.x) (pull_request) Failing after 4s
Test (misskey.js) / test (22.x) (pull_request) Failing after 5s
Lint / pnpm_install (pull_request) Successful in 3m43s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m34s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m40s
Lint / lint (backend) (pull_request) Failing after 2m3s
Lint / lint (misskey-js) (pull_request) Successful in 5m18s
Lint / lint (sw) (pull_request) Successful in 2m31s
Lint / lint (frontend) (pull_request) Failing after 11m13s
Lint / typecheck (misskey-js) (pull_request) Successful in 3m52s
Lint / typecheck (backend) (pull_request) Successful in 7m14s
This commit is contained in:
parent
ed9b8fa023
commit
25f1a8abc0
5 changed files with 6 additions and 6 deletions
|
@ -144,7 +144,7 @@ export class UrlPreviewService {
|
|||
|
||||
return summaly(url, {
|
||||
followRedirects: false,
|
||||
lang: lang ?? 'ja-JP',
|
||||
lang: lang ?? 'en-US',
|
||||
agent: agent,
|
||||
userAgent: meta.urlPreviewUserAgent ?? undefined,
|
||||
operationTimeout: meta.urlPreviewTimeout,
|
||||
|
@ -157,7 +157,7 @@ export class UrlPreviewService {
|
|||
const proxy = meta.urlPreviewSummaryProxyUrl!;
|
||||
const queryStr = query({
|
||||
url: url,
|
||||
lang: lang ?? 'ja-JP',
|
||||
lang: lang ?? 'en-US',
|
||||
userAgent: meta.urlPreviewUserAgent ?? undefined,
|
||||
operationTimeout: meta.urlPreviewTimeout,
|
||||
contentLengthLimit: meta.urlPreviewMaximumContentLength,
|
||||
|
|
|
@ -8,6 +8,6 @@ import locales from '../../../locales/index.js';
|
|||
|
||||
await writeFile(
|
||||
new URL('locale.ts', import.meta.url),
|
||||
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
||||
`export default ${JSON.stringify(locales['en-US'], undefined, 2)} as const;`,
|
||||
'utf8',
|
||||
)
|
||||
|
|
|
@ -13,7 +13,7 @@ export const hostname = address.hostname;
|
|||
export const url = address.origin;
|
||||
export const apiUrl = location.origin + '/api';
|
||||
export const wsOrigin = location.origin;
|
||||
export const lang = miLocalStorage.getItem('lang') ?? 'ja-JP';
|
||||
export const lang = miLocalStorage.getItem('lang') ?? 'en-US';
|
||||
export const langs = _LANGS_;
|
||||
const preParseLocale = miLocalStorage.getItem('locale');
|
||||
export let locale = preParseLocale ? JSON.parse(preParseLocale) : null;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import { lang } from '@/config.js';
|
||||
|
||||
export const versatileLang = (lang ?? 'ja-JP').replace('ja-KS', 'ja-JP');
|
||||
export const versatileLang = (lang ?? 'en-US').replace('ja-KS', 'ja-JP');
|
||||
|
||||
let _dateTimeFormat: Intl.DateTimeFormat;
|
||||
try {
|
||||
|
|
|
@ -13,7 +13,7 @@ class SwLang {
|
|||
public cacheName = `mk-cache-${_VERSION_}`;
|
||||
|
||||
public lang: Promise<string> = get('lang').then(async prelang => {
|
||||
if (!prelang) return 'ja-JP';
|
||||
if (!prelang) return 'en-US';
|
||||
return prelang;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue