Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nmori/Firebot into JP_TRA…
Browse files Browse the repository at this point in the history
…NSLATION_5.59.2
  • Loading branch information
nmori committed Dec 18, 2023
2 parents 7dc75cc + fdcb1c5 commit 8ab2dbc
Show file tree
Hide file tree
Showing 40 changed files with 1,307 additions and 1,028 deletions.
2,203 changes: 1,241 additions & 962 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"@aws-sdk/client-polly": "^3.26.0",
"@crowbartools/firebot-custom-scripts-types": "^5.53.2-6",
"@nut-tree/nut-js": "^3.1.1",
"@twurple/api": "^6.0.9",
"@twurple/auth": "^6.0.9",
"@twurple/chat": "^6.0.9",
"@twurple/pubsub": "^6.0.9",
"@twurple/api": "^6.2.0",
"@twurple/auth": "^6.2.0",
"@twurple/chat": "^6.2.0",
"@twurple/pubsub": "^6.2.0",
"@zunderscore/elgato-light-control": "^1.1.2",
"angular": "^1.8.0",
"angular-animate": "^1.7.8",
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app-management/electron/window-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function createStreamPreviewWindow() {
streamPreviewWindowState.manage(streamPreview);

streamPreview.on("close", () => {
if (!view.isDestroyed()) {
if (!view.isDestroyed) {
view.destroy();
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/backend/chat/chat-listeners/twitch-chat-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports.setupChatListeners = (streamerChatClient) => {
},
reward: {
id: HIGHLIGHT_MESSAGE_REWARD_ID,
name: "Highlight Message",
name: "ハイライト",
cost: 0,
imageUrl: "https://static-cdn.jtvnw.net/automatic-reward-images/highlight-4.png"
}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/chat/twitch-commands/chat-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const shoutoutHandler: TwitchSlashCommandHandler<[string]> = {
if (targetUsername == null || targetUsername.length < 1) {
return {
success: false,
errorMessage: "文章を入力してください"
errorMessage: "ユーザ名を入力してください"
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/backend/effects/builtin/active-user-lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const model = {
</ul>
</div>
</eos-container>
<eos-container header="Target" pad-top="true" ng-show="effect.action != null && effect.action !== 'Clear List'">
<eos-container header="対象" pad-top="true" ng-show="effect.action != null && effect.action !== 'Clear List'">
<div class="input-group">
<span class="input-group-addon" id="username-type">Username</span>
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables>
</div>
</eos-container>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/block-unblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const model = {
</ul>
</div>
</eos-container>
<eos-container header="Target" pad-top="true" ng-show="effect.action != null">
<eos-container header="対象" pad-top="true" ng-show="effect.action != null">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const model = {
},
optionsTemplate: `
<eos-container pad-top="true">
<p>このエフェクトが実行されると、チャットページのアクティビティフィード内のすべてのアクティビティが確認済みとしてマークされます。ホットキーやStreamDeckに接続することで、現在のすべてのアクティビティを素早く確認することができます。</p>
<p>この演出が実行されると、チャットページのイベント履歴内のすべてのアクティビティが確認済みとしてマークされます。ホットキーやStreamDeckに接続することで、現在のすべてのアクティビティを素早く確認することができます。</p>
</eos-container>
`,
optionsController: () => {},
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/moderator-ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const model = {
</ul>
</div>
</eos-container>
<eos-container header="Target" pad-top="true" ng-show="effect.action != null">
<eos-container header="対象" pad-top="true" ng-show="effect.action != null">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/moderator-mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const model = {
</ul>
</div>
</eos-container>
<eos-container header="Target" pad-top="true" ng-show="effect.action != null">
<eos-container header="対象" pad-top="true" ng-show="effect.action != null">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/moderator-purge.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const model = {
dependencies: [EffectDependency.CHAT]
},
optionsTemplate: `
<eos-container header="Target" pad-top="true">
<eos-container header="対象" pad-top="true">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables menu-position="below">
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/moderator-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const model = {
dependencies: [EffectDependency.CHAT]
},
optionsTemplate: `
<eos-container header="Target" pad-top="true">
<eos-container header="対象" pad-top="true">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables menu-position="below">
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/twitch-shoutout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const model: EffectType<{
dependencies: [],
},
optionsTemplate: `
<eos-container header="Target">
<eos-container header="対象">
<firebot-input model="effect.username" placeholder-text="ユーザ名を入れてください" menu-position="below" />
</eos-container>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/update-vip-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const model = {
</ul>
</div>
</eos-container>
<eos-container header="Target" pad-top="true" ng-show="effect.action != null">
<eos-container header="対象" pad-top="true" ng-show="effect.action != null">
<div class="input-group">
<span class="input-group-addon" id="username-type">視聴者名</span></span>
<input ng-model="effect.username" type="text" class="form-control" id="list-username-setting" aria-describedby="list-username-type" replace-variables>
Expand Down
2 changes: 1 addition & 1 deletion src/backend/events/builtin/twitchEventSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ module.exports = {
},
{
id: "cheer",
name: "チア",
name: "Cheer",
description: "誰かがあなたのチャンネルで声援を送ったとき(ビッツを使ったとき)",
cached: false,
manualMetadata: {
Expand Down
4 changes: 2 additions & 2 deletions src/backend/events/filters/builtin/cheer-bits-amount.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const { ComparisonType } = require("../../../../shared/filter-constants");

module.exports = {
id: "firebot:cheerbitsamount",
name: "チアビッツ額",
description: "チアしてくれたビッツの金額でフィルタします",
name: "Cheerビッツ額",
description: "Cheerしてくれたビッツの金額でフィルタします",
events: [
{ eventSourceId: "twitch", eventId: "cheer" }
],
Expand Down
4 changes: 2 additions & 2 deletions src/backend/twitch-api/pubsub/pubsub-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function createClient() {

const bitsListener = pubSubClient.onBits(streamer.userId, (message) => {
twitchEventsHandler.cheer.triggerCheer(
message.userName ?? "An Anonymous Cheerer",
message.userName ?? "匿名",
message.userId,
message.isAnonymous,
message.bits,
Expand All @@ -123,7 +123,7 @@ async function createClient() {

const bitsBadgeUnlockListener = pubSubClient.onBitsBadgeUnlock(streamer.userId, (message) => {
twitchEventsHandler.cheer.triggerBitsBadgeUnlock(
message.userName ?? "An Anonymous Cheerer",
message.userName ?? "匿名",
message.message ?? "",
message.badgeTier
);
Expand Down
6 changes: 3 additions & 3 deletions src/backend/variables/builtin/bits-leaderboard-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ const model = {
period = period ?? "all";

if (Number.isNaN(count) || count < 1 || count > 100) {
throw new expressionish.ExpressionArgumentsError("First argument needs to be either null or a number.", 0);
throw new expressionish.ExpressionArgumentsError("第一引数にはNULLか数値を指定する。", 0);
}

const validPeriods = ["day", "week", "month", "year", "all"];
period = period.toLowerCase();

if (validPeriods.indexOf(period) === -1) {
throw new expressionish.ExpressionArgumentsError("Second argument must be a valid period ('day', 'week', 'month', 'year', or 'all').", 0);
throw new expressionish.ExpressionArgumentsError("第2引数には有効な期間('day''week''month''year''all')を指定する。", 0);
}

if (startDate != null && !moment(startDate).isValid()) {
throw new expressionish.ExpressionArgumentsError("Third argument must be a valid date string.", 0);
throw new expressionish.ExpressionArgumentsError("第3引数は有効な日付文字列でなければならない。", 0);
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/custom-variable-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const model = {
description: "第2引数にプロパティ・パス(ドット記法)を与えて、オブジェクト・プロパティのキーの配列を取得する。"
}
],
description: "Get the array of keys for an object saved in the custom variable.",
description: "カスタム変数に保存されているオブジェクトのキーの配列を取得します。",
categories: [VariableCategory.ADVANCED],
possibleDataOutput: [OutputDataType.TEXT]
},
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const model = {
argsCheck: (exp) => {

if (exp == null || exp.length < 1) {
throw new SyntaxError("A math expression must be included!");
throw new SyntaxError("数式が含まれていなければならない!");
}

return true;
Expand Down
4 changes: 2 additions & 2 deletions src/backend/variables/builtin/read-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const model = {
evaluator: (_, filePath, lineOrRandom) => {

if (filePath === null) {
return "[File Path Error]";
return "[ファイルパスのエラー]";
}

try {
Expand Down Expand Up @@ -73,7 +73,7 @@ const model = {
return contents;
} catch (err) {
logger.error("error reading file", err);
return "[Read File Error]";
return "[ファイル読み込みエラー]";
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/regex-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { OutputDataType, VariableCategory } = require("../../../shared/variable-c
const model = {
definition: {
handle: "regexExec",
description: "Filter a string with a regular expression",
description: "正規表現で文字列をフィルタリングする",
usage: "regexExec[string, expression]",
examples: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const model = {
evaluator: (_, input, search, replacement = "", searchIsRegex = false, flags = "g") => {

if (input == null) {
return "[Missing input]";
return "[不足している入力]";
}

if (search == null) {
Expand Down
4 changes: 2 additions & 2 deletions src/backend/variables/builtin/reward-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const model = {
const channelRewardId = channelRewardManager.getChannelRewardIdByName(rewardName);

if (channelRewardId == null) {
return "[Can't find reward by name]";
return "[報酬を名前で検索できない]";
}

const reward = await twitchApi.streamerClient.channelPoints.getCustomRewardById(
Expand All @@ -47,7 +47,7 @@ const model = {
}

if (rewardData == null) {
return "[No reward found]";
return "[報酬なし]";
}

return rewardData.rewardDescription;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/stream-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const model = {

const channelInfo = await TwitchApi.channels.getChannelInformationByUsername(username);

return channelInfo != null ? channelInfo.title : "[No channel found]";
return channelInfo != null ? channelInfo.title : "[チャンネルが見つかりません]";
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/backend/variables/builtin/top-currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const model = {
evaluator: async (_, currencyName, count = 10) => {

if (currencyName == null) {
return "[Invalid currency name]";
return "[無効な通貨名]";
}

// limit to max of 50
Expand All @@ -31,15 +31,15 @@ const model = {
const currencyData = currencyDatabase.getCurrencies();

if (currencyData == null) {
return "[No currencies created]";
return "[通貨発行なし]";
}

const currencies = Object.values(currencyData);

const currency = currencies.find(c => c.name.toLowerCase() === currencyName.toLowerCase());

if (currency == null) {
return "[Invalid currency name]";
return "[無効な通貨名]";
}

const topCurrencyHolders = await currencyDatabase.getTopCurrencyHolders(currency.id, count);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/top-metadata-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const model = {
evaluator: async (_, metadataKey, count = 10) => {

if (metadataKey == null) {
return "[Invalid metadata key]";
return "[無効なメタデータ・キー]";
}

// limit to max of 50
Expand Down
4 changes: 2 additions & 2 deletions src/backend/variables/builtin/top-metadata-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ const model = {
evaluator: async (_, metadataKey, position = 1, usernameOrPosition = "username") => {

if (metadataKey == null) {
return "[Invalid metadata name]";
return "[無効なメタデータ名]";
}

const userAtPosition = await userDatabase.getTopMetadataPosition(metadataKey, position);

if (userAtPosition == null) {
return "[Can't find user at position]";
return "[ユーザーが見つからない]";
}

if (usernameOrPosition === "username") {
Expand Down
4 changes: 2 additions & 2 deletions src/backend/variables/builtin/top-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const model = {
evaluator: async (_, metadataKey, count = 10) => {

if (metadataKey == null) {
return "[Invalid metadata key]";
return "[無効なメタデータ・キー]";
}

// limit to max of 50
Expand Down Expand Up @@ -46,7 +46,7 @@ const model = {

// no one in list: output none
if (topUsersDisplay === '') {
return '(none)';
return '(なし)';
}

// return list
Expand Down
4 changes: 2 additions & 2 deletions src/gui/app/directives/chat/quick-actions/quick-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
<div class="quick-action-settings flex flex-col items-center mb-4">
<button
class="quick-action-btn p-0"
uib-tooltip="Add Custom Quick Action"
uib-tooltip="クイックアクションを追加"
append-tooltip-to-body="true"
tooltip-placement="right"
ng-click="quickActionsService.showAddOrEditCustomQuickActionModal()"
aria-label="クイックアクションの追加"
aria-label="クイックアクションを追加"
>
<i class="fas fa-plus"></i>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
template: `
<div class="modal-header" style="text-align: center">
<button type="button" class="close" ng-click="$ctrl.dismiss()"><span>&times;</span></button>
<h4 class="modal-title">Edit Quick Action</h4>
<h4 class="modal-title">クイックアクションを編集</h4>
</div>
<div class="modal-body py-8 px-14">
<div class="mb-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
template: `
<div class="modal-header" style="text-align: center">
<button type="button" class="close" ng-click="$ctrl.dismiss()"><span>&times;</span></button>
<h4 class="modal-title">アクティビティイベントの編集</h4>
<h4 class="modal-title">イベント履歴の編集</h4>
</div>
<div class="modal-body" style="padding: 0 35px">
<p>アクティビティフィードで見たいイベントを選択します。</p>
<p>履歴に表示したいイベントを選択します</p>
<div class="viewer-db-switches">
<div style="margin-bottom: 10px;">
<searchbar placeholder-text="検索" query="eventSearch" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
<div class="mt-6">
<div class="modal-subheader pb-2 pt-0 px-0">MODE</div>
<div class="modal-subheader pb-2 pt-0 px-0">動作モード</div>
<div>
<ui-select ng-model="$ctrl.effectQueue.mode" theme="bootstrap" class="control-type-list">
<ui-select-match placeholder="Select queue mode">{{$select.selected.display}}</ui-select-match>
Expand Down
Loading

0 comments on commit 8ab2dbc

Please sign in to comment.