mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-21 13:30:27 +08:00
Translator accepts array
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
angular.module("sideBySide").factory("transformer", () ->
|
||||
# Transform translations
|
||||
#
|
||||
# @param translations [...Object] Translation with 'meta' and 'content' keys
|
||||
# @param translations [Array] Translations with 'meta' and 'content' keys
|
||||
# @throw No poems or uneven number of verses
|
||||
# @return [Array] Translations transformed into row-based format
|
||||
return (translations...) ->
|
||||
return (translations) ->
|
||||
# Check whether all translations have same number of verses
|
||||
#
|
||||
# @param translations [array] Translations to check
|
||||
|
||||
Reference in New Issue
Block a user