diff --git a/app/Livewire/Forms/RoomStatusLogTable.php b/app/Livewire/Forms/RoomStatusLogTable.php index cb45511..045ace1 100644 --- a/app/Livewire/Forms/RoomStatusLogTable.php +++ b/app/Livewire/Forms/RoomStatusLogTable.php @@ -65,12 +65,12 @@ final class RoomStatusLogTable extends PowerGridComponent public function columns(): array { $column=[]; - $column[]=Column::make('Id', 'id'); - $column[]=Column::make('Room', 'room_name'); - $column[]=Column::make('User', 'user_name'); - $column[]=Column::make('Status', 'status_str'); - $column[]=Column::make('Message', 'message'); - $column[]=Column::make('Created at', 'created_at'); + $column[]=Column::make(__('room-status-log.id'), 'id'); + $column[]=Column::make(__('room-status-log.room'), 'room_name'); + $column[]=Column::make(__('room-status-log.user'), 'user_name'); + $column[]=Column::make(__('room-status-log.status'), 'status_str'); + $column[]=Column::make(__('room-status-log.message'), 'message'); + $column[]=Column::make(__('room-status-log.created_at'), 'created_at'); return $column; } diff --git a/app/Livewire/Forms/SongLibraryCacheTable.php b/app/Livewire/Forms/SongLibraryCacheTable.php index de2d006..d102bf8 100644 --- a/app/Livewire/Forms/SongLibraryCacheTable.php +++ b/app/Livewire/Forms/SongLibraryCacheTable.php @@ -73,40 +73,40 @@ final class SongLibraryCacheTable extends PowerGridComponent ->add('song_filename') ->add('song_category') ->add('language_name') - ->add('add_date_formatted', fn (SongLibraryCache $model) => Carbon::parse($model->add_date)->format('d/m/Y')) + ->add('add_date_formatted', fn (SongLibraryCache $model) => Carbon::parse($model->add_date)->format('Y-m-d')) ->add('situation') ->add('vocal') ->add('db_change') ->add('song_counts') - ->add('updated_at_formatted', fn (SongLibraryCache $model) => Carbon::parse($model->updated_at)->format('d/m/Y H:i:s')); + ->add('updated_at_formatted', fn (SongLibraryCache $model) => Carbon::parse($model->updated_at)->format('Y-m-d H:i:s')); } public function columns(): array { $column=[]; - $column[]=Column::make('Song id', 'song_id'); - $column[]=Column::make('Song name', 'song_name')->sortable()->searchable(); - $column[]=Column::make('Song simplified', 'song_simplified')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Phonetic abbr', 'phonetic_abbr')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Pinyin abbr', 'pinyin_abbr')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Strokes abbr', 'strokes_abbr')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Song number', 'song_number')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('ArtistA', 'artistA')->sortable()->searchable(); - $column[]=Column::make('ArtistB', 'artistB')->sortable()->searchable(); - $column[]=Column::make('ArtistA simplified', 'artistA_simplified')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('ArtistB simplified', 'artistB_simplified')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('ArtistA category', 'artistA_category')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('ArtistB category', 'artistB_category')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Artist category', 'artist_category')->sortable()->searchable()->hidden(true, false); - $column[]=Column::make('Song filename', 'song_filename')->sortable()->searchable(); - $column[]=Column::make('Song category', 'song_category')->sortable()->searchable(); - $column[]=Column::make('Language name', 'language_name')->sortable()->searchable(); - $column[]=Column::make('Add date', 'add_date_formatted', 'add_date')->sortable(); - $column[]=Column::make('Situation', 'situation')->sortable()->searchable(); - $column[]=Column::make('Vocal', 'vocal')->sortable()->searchable(); - $column[]=Column::make('Db change', 'db_change')->sortable()->searchable(); - $column[]=Column::make('Song counts', 'song_counts')->sortable()->searchable(); - $column[]=Column::make('Updated at', 'updated_at_formatted', 'updated_at')->sortable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.id'), 'song_id'); + $column[]=Column::make(__('song-library-cache.name'), 'song_name')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.simplified'), 'song_simplified')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.name.phinetic'), 'phonetic_abbr')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.name.pinyin'), 'pinyin_abbr')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.name.strokes'), 'strokes_abbr')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.name_length'), 'song_number')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.artists').'A', 'artistA')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.artists').'B', 'artistB')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.artists_simplified').'A', 'artistA_simplified')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.artists_simplified').'B', 'artistB_simplified')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.artists_category').'A', 'artistA_category')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.artists_category').'B', 'artistB_category')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.artists_category'), 'artist_category')->sortable()->searchable()->hidden(true, false); + $column[]=Column::make(__('song-library-cache.filename'), 'song_filename')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.categorys'), 'song_category')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.language_type'), 'language_name')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.adddate'), 'add_date_formatted', 'add_date')->sortable(); + $column[]=Column::make(__('song-library-cache.situation'), 'situation')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.vocal'), 'vocal')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.db_change'), 'db_change')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.counts'), 'song_counts')->sortable()->searchable(); + $column[]=Column::make(__('song-library-cache.updated_at'), 'updated_at_formatted', 'updated_at')->sortable()->hidden(true, false); return $column; } diff --git a/resources/lang/zh-tw/room-status-log.php b/resources/lang/zh-tw/room-status-log.php new file mode 100644 index 0000000..40ae803 --- /dev/null +++ b/resources/lang/zh-tw/room-status-log.php @@ -0,0 +1,13 @@ + '包廂狀態紀錄', + + 'id' => '編號', + 'room' => '包廂', + 'user' => '操成者', + 'status' => '狀態', + 'message' => '紀錄', + 'created_at' => '建立於' + + ]; \ No newline at end of file diff --git a/resources/lang/zh-tw/song-library-cache.php b/resources/lang/zh-tw/song-library-cache.php new file mode 100644 index 0000000..94e4ead --- /dev/null +++ b/resources/lang/zh-tw/song-library-cache.php @@ -0,0 +1,32 @@ + '歌曲庫列表-同步後台', + + 'id' => '歌曲編號', + 'name' => '歌曲名稱', + 'artists' => '歌手', + 'artists_simplified' => '歌手簡體', + 'artists_category' => '歌手分類', + 'filename' => '歌曲檔名', + 'adddate' => '新增日期', + 'categorys' => '分類', + 'name.phinetic' => '歌曲注音', + 'name.pinyin' => '歌曲拼音', + 'name.strokes' => '歌曲筆劃', + 'language_type' => '語別', + 'copyright01' => '版權01', + 'copyright02' => '版權02', + 'note01' => '備註01', + 'note02' => '備註02', + 'note03' => '備註03', + 'note04' => '備註04', + 'enable' => '狀態', + 'name_length' => '歌名字數', + 'db_change'=>'分貝增減', + 'vocal' => '人聲', + 'situation' => '情境', + 'simplified' => '歌名簡體', + 'counts' => '點播次數', + 'updated_at' =>'同步時間', +]; \ No newline at end of file