I need to change the table of contents name (into Russian). I have already read answers to similar questions How to change the title of ToC? and Strange behaviour on redefining \contentsname, but the following code doesn't work (table of contents titled as 'Contents').
\documentclass[a4paper,12pt]{report}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsthm,amssymb,amsmath}
\usepackage[russian,english]{babel}
\usepackage[title,titletoc]{appendix}
\addto\captionsrussian{\renewcommand{\contentsname}{Содержание}}
How to fix this problem?