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:
Vendored
+16
@@ -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
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export const localesVersion: string;
|
||||
@@ -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');
|
||||
Reference in New Issue
Block a user