Skip to content

Conversation

@kellertuer
Copy link
Contributor

@kellertuer kellertuer commented Aug 18, 2025

Here is a first approach to a Norwegian translation.

First note that Norwegian has two official languages: Bokmål and Nynorsk.
Nynorsk is a minority, but should be respected and supported. Sadly, I only learned bokmål until now; still, I will prepare this PR already with Nynorsk in mind.

Comments and Notes

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/kellertuer/Pluto.jl", rev="kellertuer/norsk")
julia> using Pluto

@fonsp
Copy link
Owner

fonsp commented Aug 18, 2025

Super exciting! Looking forward :)

@fonsp
Copy link
Owner

fonsp commented Aug 18, 2025

Use this for lang_imports.js

// Separate file because Prettier cannot handle it.

// These imports require quite modern browsers (https://caniuse.com/mdn-javascript_statements_import_import_attributes) but it will be bundled so it doesn't matter for Pluto releases.
// @ts-ignore
export { default as deutsch } from "../lang/deutsch.json" with { type: "json" }
// @ts-ignore
export { default as ellinika } from "../lang/ellinika.json" with { type: "json" }
// @ts-ignore
export { default as english } from "../lang/english.json" with { type: "json" }
// @ts-ignore
export { default as nederlands } from "../lang/nederlands.json" with { type: "json" }
// @ts-ignore
export { default as norsk_bokmål } from "../lang/norsk_bokmål.json" with { type: "json" }

@kellertuer
Copy link
Contributor Author

Ah yes, I forgot to save the file before writing the commit ;)

@Pangoraw Pangoraw added the language About translating and localising Pluto to different natural languages label Aug 20, 2025
In principle done now, but I'll do a final typo and small fixes check later.
@kellertuer kellertuer marked this pull request as ready for review August 24, 2025 06:05
@kellertuer
Copy link
Contributor Author

Thanks for checking the translation @elorannug !
This should be good to go. I hope I merged main correctly.

@fonsp
Copy link
Owner

fonsp commented Aug 24, 2025

Awesome!! Thank you!

I fixed the import in my last commit so you can try it in Pluto now. Did you already try to use Pluto with the new language? It might be nice to use it a bit to see how the language works in action :)

@kellertuer
Copy link
Contributor Author

Looks good to me, maybe besides my perfectionism that it states Norse is only 99% (and deutsch even only 98%). But both are maybe also something for a new PR checking what was added since both PRs were started.

@fonsp
Copy link
Owner

fonsp commented Aug 25, 2025

Yes feel free to make a new PR! You can use the update script julia update_languages.jl to check for this, it will automatically add any missing keys to all language files.

I also added a change recently where anything above 98% shows as 100% to make it feel nicer :)

@fonsp fonsp merged commit 6fc7ae6 into fonsp:main Aug 25, 2025
6 checks passed
@fonsp
Copy link
Owner

fonsp commented Aug 25, 2025

@fonsp
Copy link
Owner

fonsp commented Aug 25, 2025

I will make a release next week! Currently busy with our class 😅

@kellertuer
Copy link
Contributor Author

Sure no problem. Maybe I find the time to check on both languages for the missing terms already this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language About translating and localising Pluto to different natural languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants