שְׁתֵּ֤ים עֶשְׂרֵה֙ שָׁנָ֔ה עָבְד֖וּ אֶת־כְּדָרְלָעֹ֑מֶר וּשְׁלֹשׁ־עֶשְׂרֵ֥ה שָׁנָ֖ה מָרָֽדוּ׃
צװעלף יאָר האָבן זײ געדינט כּדָרלעומֶרן, און אױפֿן דרײַצנטן יאָר האָבן זײ װידערשפּעניקט.
Rashi
שתים עשרה שנה עבדו TWELVE YEARS DID THEY i. e. these five kings SERVE Chedorlaomer.
Radak
שתים עשרה שנה עבדו, they were enslaved to Amrafel, paying annual taxes to him.
Sforno
עבדו את כדרלעמר, after the compromise they had reached 12 years ago. Afterwards, they rebelled.