Last active
April 12, 2023 12:34
-
-
Save calien666/443eba6bf10a33e986156da62fbea4df to your computer and use it in GitHub Desktop.
Local language File and code templates for PHpStorm/WebStorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add under settings -> Editor -> File and Code Templates --> | |
<!-- put into file name: #if ($TARGET!="")$TARGET.#end${NAME} --> | |
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | |
<xliff version="1.0"> | |
<file source-language="en" target-language="$TARGET" datatype="plaintext" original="messages" date="${YEAR}-${MONTH}-${DAY}T${HOUR}:${MINUTE}:${SECOND}Z"> | |
<header> | |
<generator>PhpStorm</generator> | |
</header> | |
<body> | |
</body> | |
</file> | |
</xliff> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add under Settings -> Editor -> Live Templates, possible shortcut: tgt --> | |
<target>$TARGET$</target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add under Settings -> Editor -> Live Templates, possible Shortcut: tran --> | |
<trans-unit id="$NAME$"> | |
<source>$SOURCE$</source> | |
</trans-unit> |
Yeah, I use this with shortcut
lll
local language label<trans-unit id="$KEY$"> <source>$VALUE$</source> </trans-unit>$END$
I didn't use this, because if I need a target after source, my cursor is at the correct point. But thanks, this is helpful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, I use this with shortcut
lll
local language label