For minibatch SGD, the number of samples per language is equal to the batch size divided by M.   Multilingual document classification datasets are usually limited in size, have target categories aligned across languages, and assign documents to only one category.
classification is often necessary in cases where the categories are not strictly aligned, and multiple categories may apply to each document.