Merge branch 'develop' into future-2024-05-31
This commit is contained in:
commit
b2cbd507fe
44 changed files with 223 additions and 79 deletions
|
@ -760,6 +760,10 @@ noCrawleDescription: "Ask search engines to not index your profile page, notes,
|
|||
lockedAccountInfo: "Unless you set your note visiblity to \"Followers only\", your notes will be visible to anyone, even if you require followers to be manually approved."
|
||||
alwaysMarkSensitive: "Mark as sensitive by default"
|
||||
loadRawImages: "Load original images instead of showing thumbnails"
|
||||
searchEngine: "Search Engine For Search MFM"
|
||||
searchEngineOther: "Other"
|
||||
searchEngineCustomURIDescription: "The custom URI must be input in the format like \"https://www.google.com/search?q=\\{query}\" or \"https://www.google.com/search?q=%s\"."
|
||||
searchEngineCusomURI: "Custom URI"
|
||||
disableShowingAnimatedImages: "Don't play animated images"
|
||||
highlightSensitiveMedia: "Highlight sensitive media"
|
||||
verificationEmailSent: "A verification email has been sent. Please follow the included link to complete verification."
|
||||
|
@ -1880,6 +1884,7 @@ _aboutMisskey:
|
|||
morePatrons: "We also appreciate the support of many other helpers not listed here. Thank you! 🥰"
|
||||
patrons: "Patrons"
|
||||
projectMembers: "Project members"
|
||||
testers: "Testers"
|
||||
_displayOfSensitiveMedia:
|
||||
respect: "Hide media marked as sensitive"
|
||||
ignore: "Display media marked as sensitive"
|
||||
|
|
|
@ -6,7 +6,10 @@ import ts from 'typescript';
|
|||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const parameterRegExp = /\{(\w+)\}/g;
|
||||
// braces preceded by backslashes are literal, they don't represent
|
||||
// parameters; they get cleaned up by `locales/index.js` before
|
||||
// getting shipped to the browser
|
||||
const parameterRegExp = /(?<!\\)\{(\w+)\}/g;
|
||||
|
||||
function createMemberType(item) {
|
||||
if (typeof item !== 'string') {
|
||||
|
|
20
locales/index.d.ts
vendored
20
locales/index.d.ts
vendored
|
@ -3052,6 +3052,22 @@ export interface Locale extends ILocale {
|
|||
* 添付画像のサムネイルをオリジナル画質にする
|
||||
*/
|
||||
"loadRawImages": string;
|
||||
/**
|
||||
* 検索MFMの検索エンジン
|
||||
*/
|
||||
"searchEngine": string;
|
||||
/**
|
||||
* 他
|
||||
*/
|
||||
"searchEngineOther": string;
|
||||
/**
|
||||
* カスタム URI は、"https://www.google.com/search?q=\{query}" や "https://www.google.com/search?q=%s" のような形式で入力する必要があります。
|
||||
*/
|
||||
"searchEngineCustomURIDescription": string;
|
||||
/**
|
||||
* カスタム URI
|
||||
*/
|
||||
"searchEngineCusomURI": string;
|
||||
/**
|
||||
* アニメーション画像を再生しない
|
||||
*/
|
||||
|
@ -7304,6 +7320,10 @@ export interface Locale extends ILocale {
|
|||
* プロジェクトメンバー
|
||||
*/
|
||||
"projectMembers": string;
|
||||
/**
|
||||
* テスター
|
||||
*/
|
||||
"testers": string;
|
||||
};
|
||||
"_displayOfSensitiveMedia": {
|
||||
/**
|
||||
|
|
|
@ -49,7 +49,11 @@ const primaries = {
|
|||
};
|
||||
|
||||
// 何故か文字列にバックスペース文字が混入することがあり、YAMLが壊れるので取り除く
|
||||
const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), '');
|
||||
//
|
||||
// also, we remove the backslashes in front of open braces (the
|
||||
// backslashes are only needed to tell `generateDTS.js` that the
|
||||
// braces do not represent parameters)
|
||||
const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), '').replaceAll(new RegExp(/\\+\{/,'g'), '{');
|
||||
|
||||
export function build() {
|
||||
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, import.meta.url), 'utf-8'))) || {}, a), {});
|
||||
|
|
|
@ -759,6 +759,10 @@ noCrawleDescription: "外部の検索エンジンにあなたのユーザーペ
|
|||
lockedAccountInfo: "フォローを承認制にしても、ノートの公開範囲を「フォロワー」にしない限り、誰でもあなたのノートを見ることができます。"
|
||||
alwaysMarkSensitive: "デフォルトでメディアをセンシティブ設定にする"
|
||||
loadRawImages: "添付画像のサムネイルをオリジナル画質にする"
|
||||
searchEngine: "検索MFMの検索エンジン"
|
||||
searchEngineOther: "他"
|
||||
searchEngineCustomURIDescription: "カスタム URI は、\"https://www.google.com/search?q=\\{query}\" や \"https://www.google.com/search?q=%s\" のような形式で入力する必要があります。"
|
||||
searchEngineCusomURI: "カスタム URI"
|
||||
disableShowingAnimatedImages: "アニメーション画像を再生しない"
|
||||
highlightSensitiveMedia: "メディアがセンシティブであることを分かりやすく表示"
|
||||
verificationEmailSent: "確認のメールを送信しました。メールに記載されたリンクにアクセスして、設定を完了してください。"
|
||||
|
@ -1903,6 +1907,7 @@ _aboutMisskey:
|
|||
morePatrons: "他にも多くの方が支援してくれています。ありがとうございます🥰"
|
||||
patrons: "支援者"
|
||||
projectMembers: "プロジェクトメンバー"
|
||||
testers: "テスター"
|
||||
|
||||
_displayOfSensitiveMedia:
|
||||
respect: "センシティブ設定されたメディアを隠す"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue