How i can convert this Rewrite Apache to Rewrite as nginx Rewrite
RewriteRule !(/[^\./]*|\.(|shtml|shtml|html|htm|shtml|php|php3|php4|php5|php6))$ - [S=1]
RewriteRule ^(sq|ar|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|id|it|ja|ko|lv|lt|mt|no|pl|pt|ro|ru|sr|sk|sl|es|sv|th|tr|uk|vi)/(.*)$ $2?hl=$1 [L,QSA]
# If not valid html file, view as original (without traslation)
RewriteRule ^(sq|ar|bg|ca|zh-CN|zh-TW|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|id|it|ja|ko|lv|lt|mt|no|pl|pt|ro|ru|sr|sk|sl|es|sv|th|tr|uk|vi)/(.*)$ $2 [L,QSA]
I hope somebody here can help me to convert this Rewrite.
Regards.