```php
<?php
return [
'hello' => 'Hello 世界!你好!',
'test' => 'test 世界!你好!',
'options' => [
'gender' => [
0 => '女',
1 => '男',
],
],
];
```
上面的内容是我的翻译文件里的内容,默认文件名是 message.php。
下面是我的 SQL :
```php
$data = Db::table('teacherinfo')
->select('teacherinfo.id', 'teacherinfo.skiinfo_id', 'skiinfo.name as skiinfo_name',
'teacherinfo.name', 'teacherinfo.avatar', 'teacherinfo.type',
'teacherinfo.certificate', 'teacherinfo.certificate_info', 'teacherinfo.gender',
'teacherinfo.skis', 'teacherinfo.skis_info', 'teacherinfo.images', 'teacherinfo.price',
'teacherinfo.ski_age', 'teacherinfo.teach_age', 'teacherinfo.content',
'teacherinfo.created_at', 'teacherinfo.updated_at')
->leftJoin('skiinfo', 'teacherinfo.skiinfo_id', '=', 'skiinfo.id')
->whereNull('teacherinfo.deleted_at')
->where("teacherinfo.is_work", '=', 1)
->orderByDesc('teacherinfo.created_at')
->forPage($param['page'], $param['perPage'])
->chunkMap(function ($res) {
if ($res->gender == 0) $res->gender = trans('options.gender');
if ($res->gender == 1) $res->gender = '男';
return $res;
});
```
第14行(if ($res->gender == 0) $res->gender = trans('options.gender');),我想翻译成女,如何写?求指教。