bastienEichenberger / extendscript-library

ExtendScript-library is a JavaScript library. This library has been created in order to support people who'd like write automation scripts for Adobe Creative Suite
www.extendscript-library.org
BSD 2-Clause "Simplified" License
67 stars 12 forks source link

add a translation module #11

Open bastienEichenberger opened 6 years ago

bastienEichenberger commented 6 years ago

Write a module to translate string and load translations files

bastienEichenberger commented 6 years ago

$.writeln($.locale)

today = { en: "Today is %1/%2", de: "Heute ist der %2.%1.", fr: "aujourd'hui nous sommes le %1, %2" }; d = new Date(); alert (localize (today, d.getMonth()+1, d.getDate()));