Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d958d43
README.txtのパスを修正
shiena Feb 10, 2025
3a77c67
Merge pull request #157 from shiena/fix/readme-path
ayutaz Feb 11, 2025
85a1587
docs: Update README.md with build directory structure for Windows and…
eiei114 Feb 11, 2025
f58c7d9
Update translations
actions-user Feb 11, 2025
d0740d8
Merge pull request #158 from MidraLab/feat/add_wood_structure
ayutaz Feb 11, 2025
ba63546
fix: ヘルプのボタンを押したときに公式HPに遷移するように変更
ayutaz Mar 1, 2025
39a0c9a
Merge pull request #159 from MidraLab/fix/help_url
ayutaz Mar 1, 2025
49dbc06
fix: 実装していない機能のアイコンを非表示
ayutaz Mar 1, 2025
f024c24
feat: 設定ファイルからアプリの言語切り替え機能
ayutaz Mar 1, 2025
921765d
fix: 言語の変換処理のテストコードの追加
ayutaz Mar 1, 2025
ae727c2
fix: 不要な変数定義を削除
ayutaz Mar 1, 2025
b43cbfd
feat: ローカライズの言語にいくつか言語の追加
ayutaz Mar 1, 2025
540b551
自動翻訳を追加(GitHub Actionsによる)
actions-user Mar 1, 2025
3665412
fix: ローカライズのcsv保存処理の修正
ayutaz Mar 1, 2025
e95a046
自動翻訳を追加(GitHub Actionsによる)
actions-user Mar 1, 2025
b5d28aa
fix: 翻訳処理を修正
ayutaz Mar 1, 2025
d87ca38
fix: ローカライズのcsv保存処理の修正
ayutaz Mar 1, 2025
ef71319
自動翻訳を追加(GitHub Actionsによる)
actions-user Mar 1, 2025
ac2d15a
fix: 一行目のスキップ処理の削除
ayutaz Mar 1, 2025
ca49090
自動翻訳を追加(GitHub Actionsによる)
actions-user Mar 1, 2025
5e8180c
fix: ローカライズの反映
ayutaz Mar 1, 2025
b29fced
自動翻訳を追加(GitHub Actionsによる)
actions-user Mar 1, 2025
6dc16bb
Merge pull request #160 from MidraLab/feat/switch_localize_setting_file
ayutaz Mar 1, 2025
35617ee
fix: アプリ終了時に設定ファイルを上書きしないように変更
ayutaz Mar 12, 2025
1d294d0
fix: unity update 6.1
ayutaz May 6, 2025
380ad10
fix: update Unity version in documentation
ayutaz May 6, 2025
0f7b4e4
Update translations
actions-user May 6, 2025
c0be8ed
Merge pull request #161 from MidraLab/fix/update_unity6.1
ayutaz May 6, 2025
2535406
docs: DeepWiki Badgeの追加
ayutaz May 22, 2025
aaabd92
Update translations
actions-user May 22, 2025
194e333
Merge pull request #165 from MidraLab/docs/deepwiki
ayutaz May 22, 2025
222ebf6
fix: update Unity version to 6000.1.1f1 in CI/CD configuration
ayutaz Jun 10, 2025
ba19871
Merge pull request #166 from MidraLab/fix/ci_cd_build
ayutaz Jun 10, 2025
720f1cb
feat: Voskライブラリの追加
ayutaz Jun 12, 2025
f61efd2
docs: 使用ライブラリの更新
ayutaz Jun 12, 2025
b126354
feat: microphoneのアイコンと状態の切り替え
ayutaz Jun 12, 2025
835c0fc
feat: ローカルの音声認識対応
ayutaz Jun 14, 2025
16e4392
feat: 音声認識機能の追加とマイク操作の改善
ayutaz Jun 14, 2025
7ccca5e
fix: dllのwindows向けの設定の変更
ayutaz Jun 15, 2025
8c8343a
docs: update README.md
ayutaz Jun 15, 2025
a53d6eb
Update translations
actions-user Jun 15, 2025
ece9bbb
Merge pull request #167 from MidraLab/feat/voice_to_text
ayutaz Jun 15, 2025
dcba5e9
fix: マイクを使用するときの説明の追加
ayutaz Jun 15, 2025
67e538b
fix: allow builds on pull requests targeting the develop branch
ayutaz Jun 15, 2025
0403d47
Merge pull request #169 from MidraLab/fix/build_when_pr_on_develop
ayutaz Jun 15, 2025
0cac148
Merge pull request #170 from MidraLab/fix/mic_missing_description
ayutaz Jun 15, 2025
e36d2b3
fix: update bundle version to 0.4.0
ayutaz Jun 16, 2025
79b3cbb
Merge pull request #173 from MidraLab/feat/project_ver_0.4.0
ayutaz Jun 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 15 additions & 20 deletions .github/scripts/translate_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
# 現在のCSVを読み込み
df = pd.read_csv(csv_path)

# 対象の言語とその表示名を設定(言語名は英語に変更)
target_languages = {
'English(en)': 'English',
'French(fr)': 'French',
'Italian(it)': 'Italian',
'Korean(ko)': 'Korean'
}
# ソース言語のカラム名を指定
source_language_column = 'Japanese(ja)'

# 対象の言語カラムを自動で検出("Key", "Id", ソース言語以外)
target_columns = [col for col in df.columns if col not in ["Key", "Id", source_language_column]]

# 翻訳用の関数を定義
def translate_text(text, target_language):
Expand All @@ -26,39 +24,37 @@ def translate_text(text, target_language):
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": f"Translate the following Japanese text to {target_language}. Return only the translated text without any additional explanations or notes.\n\n{text}"}
{"role": "user", "content": f"Translate the following Japanese text to {target_language} using concise and simple language. Use short, clear words wherever possible. Return only the translated text without any additional explanations or notes.\n\n{text}"}
]
)
# 翻訳結果を取得
translation = response.choices[0].message.content.strip()
return translation
except Exception as e:
print(f"翻訳中にエラーが発生しました:{e}")
return None

# 各行に対して翻訳を実行(先頭行をスキップ)
for idx, row in df.iloc[1:].iterrows():
japanese_text = row.get('Japanese(ja)', '')
for idx, row in df.iterrows():
japanese_text = row.get(source_language_column, '')
key = row.get('Key', '')

# 日本語テキストが存在する場合のみ翻訳を実行
if pd.notnull(japanese_text) and japanese_text.strip() != '':
print(f"キー '{key}' の翻訳を実行します。")
for column, target_language in target_languages.items():
current_translation = row.get(column, '')
# 翻訳列が存在しない場合、列を追加
if column not in df.columns:
df[column] = ''
for col in target_columns:
current_translation = row.get(col, '')
# 翻訳が未実行または空欄の場合のみ翻訳を実行
if pd.isnull(current_translation) or current_translation.strip() == '':
# カラム名例: "English(en)" -> 翻訳先は "English"
target_language = col.split('(')[0].strip()
translation = translate_text(japanese_text, target_language)
if translation:
df.at[idx, column] = translation
df.at[idx, col] = translation
print(f"{target_language}への翻訳結果:{translation}")
else:
print(f"キー '{key}' の {target_language} への翻訳に失敗しました。")
else:
print(f"'{column}' 列には既に翻訳が存在します。翻訳をスキップします。")
print(f"'{col}' 列には既に翻訳が存在します。翻訳をスキップします。")
else:
print(f"キー '{key}' に日本語テキストが存在しないため、翻訳をスキップします。")

Expand All @@ -68,7 +64,6 @@ def write_custom_csv(df, csv_path):
with open(csv_path, 'w', newline='', encoding='utf-8') as csvfile:
# ヘッダーを書き込む(ダブルクォーテーションを付けない)
csvfile.write(','.join(columns) + '\n')

# データ行を書き込む(全てのフィールドをダブルクォーテーションで囲む。ただし 'Key' と 'Id' 列を除く)
for idx, row in df.iterrows():
data_row = []
Expand All @@ -90,4 +85,4 @@ def write_custom_csv(df, csv_path):

# カスタム関数でCSVを保存
write_custom_csv(df, csv_path)
print("翻訳が完了し、CSVファイルが更新されました。")
print("翻訳が完了し、CSVファイルが更新されました。")
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
pull_request:
branches:
- main
- develop
types: [opened, synchronize, reopened]
schedule:
- cron: '0 0 * * *' # 毎日UTCで午前0時に実行
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: StandaloneWindows64
unityVersion: '6000.0.31f1'
unityVersion: '6000.1.1f1'
buildName: 'uDesktopMascot'
versioning: Custom
version: ${{ needs.check-branch.outputs.current_version }}
Expand Down Expand Up @@ -227,7 +228,7 @@ jobs:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: StandaloneOSX
unityVersion: '6000.0.31f1'
unityVersion: '6000.1.1f1'
buildName: 'uDesktopMascot'
versioning: Custom
version: ${{ needs.check-branch.outputs.current_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/edit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: .
unityVersion: '6000.0.31f1' # プロジェクトのUnityバージョンに合わせてください
unityVersion: '6000.1.1f1' # プロジェクトのUnityバージョンに合わせてください
testMode: editmode
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactsPath: './artifacts'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: StandaloneWindows64
unityVersion: '6000.0.31f1'
unityVersion: '6000.1.1f1'
buildName: 'uDesktopMascot'
versioning: Custom
version: ${{ needs.check-branch.outputs.current_version }}
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: StandaloneOSX
unityVersion: '6000.0.31f1'
unityVersion: '6000.1.1f1'
buildName: 'uDesktopMascot'
versioning: Custom
version: ${{ needs.check-branch.outputs.current_version }}
Expand Down
26 changes: 25 additions & 1 deletion Assets/AddressableAssetsData/AddressableAssetSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MonoBehaviour:
m_DefaultGroup: e255baf06ce98bf4481c6b4348a1a9fa
m_currentHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
Hash: f5049e36529df5d6372688815e2cdb3a
m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0
m_CatalogRequestsTimeout: 0
Expand Down Expand Up @@ -59,13 +59,25 @@ MonoBehaviour:
m_BuildAddressablesWithPlayerBuild: 1
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets:
- {fileID: 11400000, guid: e827c8796940f8f47b26d88c1f28a09b, type: 2}
- {fileID: 11400000, guid: 68b8d10855ed68d4682a5caa146840fe, type: 2}
- {fileID: 11400000, guid: d045a79e956c5754c85c813e97e33739, type: 2}
- {fileID: 11400000, guid: 1e38d4807989a344482aafb7295ebd8e, type: 2}
- {fileID: 11400000, guid: 15f9b4a8e3fdf9542ba632c4c0f34c61, type: 2}
- {fileID: 11400000, guid: 2c101b5d6980f554db2b57adcf1528b8, type: 2}
- {fileID: 11400000, guid: 7a0818a3cd0203f4dbe28ed7fd61c1ab, type: 2}
- {fileID: 11400000, guid: caf852c02aa4f0c4eaee21e1329b945a, type: 2}
- {fileID: 11400000, guid: 56091239be9ccd64aa74edf2e0f6a3b8, type: 2}
- {fileID: 11400000, guid: 96feb6ffa1c7c214c867ea99df693332, type: 2}
- {fileID: 11400000, guid: f9ea76af53d766f4eac1b15b589d58d4, type: 2}
- {fileID: 11400000, guid: d32c93a250f846b44b9c660b789eaf34, type: 2}
- {fileID: 11400000, guid: d4b36fe27f9d6b64b9695d288cbfa20c, type: 2}
- {fileID: 11400000, guid: f237f9fd03a1d9e4f8f83b994ca7a9bd, type: 2}
- {fileID: 11400000, guid: d9ec1ad5cd034314dbe95eaa618ddaeb, type: 2}
- {fileID: 11400000, guid: ac9fb542e07c91b4eb19ffacc758af46, type: 2}
- {fileID: 11400000, guid: 87c1d7da63e8a014a98c77a2c490ec41, type: 2}
- {fileID: 11400000, guid: fcf5b210053884e4fbd4d55b74489379, type: 2}
- {fileID: 11400000, guid: 646a5345006a9ea42976f7d05b5a0773, type: 2}
- {fileID: 11400000, guid: c431bbeac2f10e946b2c6c07b8458d54, type: 2}
m_BuildSettings:
m_LogResourceManagerExceptions: 1
Expand Down Expand Up @@ -112,6 +124,18 @@ MonoBehaviour:
- Locale-ja
- Locale-ko
- Locale
- Locale-zh-CN
- Locale-zh-TW
- Locale-nl
- Locale-fi
- Locale-de
- Locale-hi
- Locale-pl
- Locale-ru
- Locale-pt-BR
- Locale-sv
- Locale-es
- Locale-tr
m_SchemaTemplates: []
m_GroupTemplateObjects:
- {fileID: 11400000, guid: 31f82614ca6c5bd43afe61799a66602d, type: 2}
Expand Down
44 changes: 34 additions & 10 deletions Assets/AddressableAssetsData/AssetGroups/Localization-Locales.asset
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ MonoBehaviour:
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 1e3414cef4998b94887f4922611dd42f
m_Address: Chinese (Traditional) (zh-TW)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 2466dae8c78f5f44dab9ebf4e8fde911
m_Address: Chinese (Simplified) (zh-CN)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 262b2cbd020367447bb61a17371f51fe
m_Address: Japanese (ja)
m_ReadOnly: 1
Expand All @@ -45,14 +57,20 @@ MonoBehaviour:
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 2b72312d6922d264aab36f6522ab3fae
m_Address: Turkish (tr)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 390146c362a7d564990655143e2464e0
m_Address: Italian (it)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 50db5db47800c9f4687b9509adf61215
m_Address: Dutch (Netherlands) (nl-NL)
- m_GUID: 7531d8e3a4676a9459f1c9d842375c7d
m_Address: Hindi (hi)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
Expand All @@ -63,26 +81,26 @@ MonoBehaviour:
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: a1edff2f8765dbc4fa19cf561cee337c
m_Address: Polish (Poland) (pl-PL)
- m_GUID: 98e6e19c39f16094ca53a02429dd7540
m_Address: Swedish (sv)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: e7c84b9a3a59fa144a7d2c40f4e9609c
m_Address: Korean (South Korea) (ko-KR)
- m_GUID: db10a78a8e76e664b9a1839c1c2c7e21
m_Address: Dutch (nl)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: ef644d7a1f2b33249b4a673b013640f9
m_Address: French (fr)
- m_GUID: de4cff44d0711544a92631f1dba0d50a
m_Address: Russian (ru)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: efc5a76855770514a9938e6187271a34
m_Address: Japanese (Japan) (ja-JP)
- m_GUID: ef644d7a1f2b33249b4a673b013640f9
m_Address: French (fr)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
Expand All @@ -93,6 +111,12 @@ MonoBehaviour:
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: fdfd0f075e38066429e7b064002ec926
m_Address: Portuguese (Brazil) (pt-BR)
m_ReadOnly: 1
m_SerializedLabels:
- Locale
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 313d4ed149ce8e446b830f4293b29f75, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-String-Tables-Chinese (Simplified) (zh-CN)
m_EditorClassIdentifier:
m_GroupName: Localization-String-Tables-Chinese (Simplified) (zh-CN)
m_GUID: b75c1841520d16543baa34ca474bbc52
m_SerializeEntries:
- m_GUID: 42402725518c4fe4287fe6b04d8b5515
m_Address: LocalizationTable_zh-CN
m_ReadOnly: 1
m_SerializedLabels:
- Locale-zh-CN
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 313d4ed149ce8e446b830f4293b29f75, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: c3f31dcaea187624ca4794acb82504b5, type: 2}
- {fileID: 11400000, guid: f84a5299ecedd2f45998a16e6a6c379c, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-String-Tables-Chinese (Traditional) (zh-TW)
m_EditorClassIdentifier:
m_GroupName: Localization-String-Tables-Chinese (Traditional) (zh-TW)
m_GUID: bb4cec141d6810942b992dc48854445f
m_SerializeEntries:
- m_GUID: 4f67b307a20dc9146b1660398899400e
m_Address: LocalizationTable_zh-TW
m_ReadOnly: 1
m_SerializedLabels:
- Locale-zh-TW
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 313d4ed149ce8e446b830f4293b29f75, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 4c261c73ddaf87d4ea4823567c771877, type: 2}
- {fileID: 11400000, guid: 091ffeda73ee3514a8f07091f411a386, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-String-Tables-Dutch (nl)
m_EditorClassIdentifier:
m_GroupName: Localization-String-Tables-Dutch (nl)
m_GUID: f6bdb5b8fcb4683428972f9ab04360eb
m_SerializeEntries:
- m_GUID: 6550614a0be95a0488399298d0925b11
m_Address: LocalizationTable_nl
m_ReadOnly: 1
m_SerializedLabels:
- Locale-nl
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 313d4ed149ce8e446b830f4293b29f75, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: ca8ba708fa18f914cab3b2a8025c04cd, type: 2}
- {fileID: 11400000, guid: 9d133854e3514d942ab72320376a0222, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading