Jump to content

Language keys in JS

Featured Replies

Posted

Hello!

Any ideas, how i can add language keys in JavaScripts?
I find this: 

And it's working for templates, but not for JS, any ideas?

You need a separate file called jslang.php for the javascript language keys.

  • Author

Hello, @Fosters^_^

And what next? IPS automaticly parse this file? 
In JS i need add 

{lang="KEY"}

?

  • Author

Close.
 

In your JS file put:

ips.getString('YOUR_KEY')

 

5 minutes ago, goldmorphin said:

Close.
 

In your JS file put:


ips.getString('YOUR_KEY')

 

Exactly :)

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.