I have dictionaries of strings in separate JavaScript files.
//a.js
Dict = {
Something = "foo",
Else = "bar"
}
//b.js
OtherDict = {
Fell = "foo",
End = "d"
}
Some of the strings are the same in various dictionaries, and I'd like to define them once and point at them in multiple dictionaries.
Dict = {
Something = Strings.Foo,
Else = "bar"
}
OtherDict = {
Fell = Strings.Foo,
End = "d"
}
I tried using jQuery, but it didn't seem to successfully include the file. How can I include one js file in another and then reference it in the declaration of a dictionary?
EDIT: The problem was that I made a typo in one of the filepaths. Everything's fine now.