Guest User

Untitled

a guest
Oct 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. i18n.py
  2. =======
  3.  
  4. I18N extension for Sphinx. This allows you to switch configuration by language like following::
  5.  
  6. # conf.py
  7. extensions = ['i18n']
  8. i18n = {
  9. 'ja': {
  10. 'some_config': 'value',
  11. 'another_config': 'value',
  12. },
  13. 'fr': {
  14. 'some_config': 'another_value',
  15. }
  16. }
  17.  
  18.  
  19. Then, you can switch these configuration by ``language``. Please use ``-D language=...`` option for ``sphinx-build``.
Add Comment
Please, Sign In to add comment