Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Suggestion: support translation autocomplete for Translator interface #262

Open
mfn opened this issue Sep 2, 2020 · 0 comments
Open

Suggestion: support translation autocomplete for Translator interface #262

mfn opened this issue Sep 2, 2020 · 0 comments

Comments

@mfn
Copy link

mfn commented Sep 2, 2020

Right now the following approaches support auto completion for translation:

  • __(…)
  • trans(…)
  • app('translator')->get(…)
  • when injecting \Illuminate\Translation\Translator directly, ->get(…) also works

The one thing which doesn't work is when injecting \Illuminate\Contracts\Translation\Translator, in this case it doesn't recognize it when calling ->get(…)

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant