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

Bug: v-t directive from vue-i18n doesn't get formatted #310

Closed
Shinigami92 opened this issue Nov 15, 2021 · 0 comments · Fixed by #311
Closed

Bug: v-t directive from vue-i18n doesn't get formatted #310

Shinigami92 opened this issue Nov 15, 2021 · 0 comments · Fixed by #311
Assignees
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected

Comments

@Shinigami92
Copy link
Member

Info

Tool Version
Plugin v1.17.2
Prettier v2.4.1
Framework vue
Node v16.13.0
OS win,linux,mac

Prettier config

{
  arrowParens: 'always',
  bracketSpacing: true,
  printWidth: 120,
  semi: true,
  singleQuote: true,
  trailingComma: 'none',
  tabWidth: 2,
  useTabs: false,
  
  pugSingleQuote: false,
  pugFramework: 'vue',
}

Input

div(v-t="{   path:  'some.message.with.id',  args: {  id:  `${id}` }}")
div(v-t="('some.message.wrapped.with.brackets')")

Output or Error

nothing changes

Expected Output

div(v-t="{ path: 'some.message.with.id', args: { id: `${id}` } }")
div(v-t="'some.message.wrapped.with.brackets'")
@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label Nov 15, 2021
@Shinigami92 Shinigami92 self-assigned this Nov 15, 2021
@Shinigami92 Shinigami92 added the framework: Vue Related to the framework Vue label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant