When the statute of limitations of another state or foreign country has created a bar to an action upon a contract made or act done in such state or country while the party sought to be charged thereby was a resident of such state or country, the bar thus created is effectual in this state against any action commenced thereon in the same manner it would have been in the state or country where the act was done or contract made.
Ala. Code § 6-2-17 (1975)