Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

外键字段无法调用翻译文件来翻译 #580

Closed
vip68 opened this issue Sep 29, 2020 · 2 comments
Closed

外键字段无法调用翻译文件来翻译 #580

vip68 opened this issue Sep 29, 2020 · 2 comments
Labels
wontfix This will not be worked on

Comments

@vip68
Copy link

vip68 commented Sep 29, 2020

  • Laravel Version: 6.18.38
  • PHP Version: 7.4.9
  • Dcat Admin Version: 1.7.4

Description:

含有外键关联的字段,好像没办法调用lang目录下的文件来翻译
例如$grid->column('channel.name');
要在翻译文件里怎么写呢?

@jqhph
Copy link
Owner

jqhph commented Sep 30, 2020

return [
    'fields' => [
        'channel' => [
            'name' => '名称'
        ],
    ],
];

@stale
Copy link

stale bot commented Apr 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 19, 2021
@stale stale bot closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants