I need to create a document with snippets in many languages - between 10 and 30 of them. I've seen people suggest XeLaTeX, but I'm working on a system that I don't have control over and that's a separate issue. For now, I'd like to do this on shareLaTeX. I started by trying babel
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[german, french, italian, spanish, portuguese, russian, arabic, hebrew, scottish, irish, english]{babel}
\usepackage{CJKutf8} %for chinese, korean, japanese
\begin{document}
\begin{enumerate}
\item one
\item %\foreignlanguage{scottish}{ceithir}
\item aon d\'eag %foreignlanguage{irish}{aon d\'eag}
\item %\foreignlanguage{scottish}{fichead}
\item fiche a c\'uig %foreignlanguage{irish}{fiche a c\'uig}
\end{enumerate}
\end{document}
but I exceed the default TeX capacity of shareLaTeX, presumably because I have too many languages. Hyphenation would be nice but isn't a hard requirement, and I realize I could typeset some languages without loading any packages. Should I be loading fonts instead for things like Cyrillic, Chinese, or Arabic? Should I be entering everything in hex or decimal unicode? I'll be on a mix of Windows and Linux machines, with an American QWERTY keyboard. What might be the best way for me to go about this?