Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>i18nextSnippetNew to Visual Studio Code? Get it now.
i18nextSnippet

i18nextSnippet

lwpro2

|
110 installs
| (2) | Free
Snippet for i18next boilerplate code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

i18nextsnippet README

This extension is to save the developers a lot time for the repetitive i18next boilerplate code.

Note: The extension is opinoned, currently only support typescript. (Suggest to use typescript)

Features

Here are the snippets commonly used:

ii18: for import the i18next modules, which will generate the necessary import statement

ti18: for get the t function from i18next module, which will get the t function from the hook

wi18: for wrap the text into the t function, which will wrap the current selected text with t function

Note: you can configure your binding for inserting the wi18 snippet.

Requirements

Extension Settings

Note you can change the key bindings if you prefer.

Known Issues

Release Notes

Enjoy!

:+1: :shipit:

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft