Merge branch 'develop' into feature/2024.9.0
# Conflicts: # locales/en-US.yml # locales/ja-JP.yml # packages/backend/src/core/NoteCreateService.ts # packages/backend/src/core/NoteDeleteService.ts # packages/backend/src/core/NoteEditService.ts # packages/frontend-shared/js/config.ts # packages/frontend/src/boot/common.ts # packages/frontend/src/pages/following-feed.vue # packages/misskey-js/src/autogen/endpoint.ts
This commit is contained in:
commit
8a34d8e9d2
52 changed files with 1073 additions and 268 deletions
16
locales/index.d.ts
vendored
16
locales/index.d.ts
vendored
|
|
@ -10916,6 +10916,22 @@ export interface Locale extends ILocale {
|
|||
* Severing all follow relations with {host} queued.
|
||||
*/
|
||||
"severAllFollowRelationsQueued": ParameterizedString<"host">;
|
||||
/**
|
||||
* Pending follow requests
|
||||
*/
|
||||
"pendingFollowRequests": string;
|
||||
/**
|
||||
* Show quotes
|
||||
*/
|
||||
"showQuotes": string;
|
||||
/**
|
||||
* Show replies
|
||||
*/
|
||||
"showReplies": string;
|
||||
/**
|
||||
* Show non-public
|
||||
*/
|
||||
"showNonPublicNotes": string;
|
||||
"_mfm": {
|
||||
/**
|
||||
* This is not a widespread feature, it may not display properly on most other fedi software, including other Misskey forks
|
||||
|
|
|
|||
1
locales/version.d.ts
vendored
Normal file
1
locales/version.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export const localesVersion: string;
|
||||
14
locales/version.js
Normal file
14
locales/version.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { createHash } from 'crypto';
|
||||
import locales from './index.js';
|
||||
|
||||
// MD5 is acceptable because we don't need cryptographic security.
|
||||
const hash = createHash('md5');
|
||||
|
||||
// Derive the version hash from locale content exclusively.
|
||||
// This avoids the problem of "stuck" translations after modifying locale files.
|
||||
const localesText = JSON.stringify(locales);
|
||||
hash.update(localesText, 'utf8');
|
||||
|
||||
// We can't use regular base64 since this becomes part of a filename.
|
||||
// Base64URL avoids special characters that would cause an issue.
|
||||
export const localesVersion = hash.digest().toString('base64url');
|
||||
Loading…
Add table
Add a link
Reference in a new issue